Re: [Tutor] opening files (fwd)

2006-09-26 Thread Danny Yoo
> im still pretty new to python so allmost all my programs are math stuff > and i would like to start writing more complex programs i know a bit > about functions and strings Hi Max, Just to clarify: you can do a lot with Python even without using files. Take a look at Alan Gauld's tutorial, f

Re: [Tutor] opening files (fwd)

2006-09-25 Thread Danny Yoo
-- Forwarded message -- Date: Mon, 25 Sep 2006 16:46:02 -0600 From: max . <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] opening files ok srry i will give a bit more info i am working on a new mac mini :)) im still pretty new to python so

Re: [Tutor] opening files

2006-09-25 Thread Danny Yoo
> my_file = open('c:\\path\to\file\file.txt', 'r') > my_file.readlines() > my_file.close() > > Really, it's so simple it's hard to come up with directions. Hi John, In that case, we have to figure out why Max is getting stuck: it's not obvious at all at what step he's getting confused. Let's co

Re: [Tutor] opening files

2006-09-25 Thread Danny Yoo
On Mon, 25 Sep 2006, max . wrote: > hello i cant understand how to open text files with python > i have tried tutorials and evrything i just cant get pleas help Hi Max, Which tutorials are you trying? Have you looked at: http://www.freenetpages.co.uk/hp/alan.gauld/ There's a whole sect

Re: [Tutor] opening files

2006-09-25 Thread John Purser
On Mon, 2006-09-25 at 12:55 -0600, max . wrote: > hello i cant understand how to open text files with python > i have tried tutorials and evrything i just cant get pleas help > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/lis

[Tutor] opening files

2006-09-25 Thread max .
hello i cant understand how to open text files with python i have tried tutorials and evrything i just cant get pleas help ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Opening files, finding their location

2005-10-08 Thread Scott Oertel
Christopher Arndt wrote: Scott Oertel schrieb: I'm looking for an easy way to find the current directory location of my program so I can include the config.ini file correctly without having to pass command line args. So, do you want to find out, where your script is li

Re: [Tutor] Opening files, finding their location

2005-10-08 Thread Christopher Arndt
Scott Oertel schrieb: > I'm looking for an easy way to find the current directory location of my > program so I can include the config.ini file correctly without having to > pass command line args. So, do you want to find out, where your script is living, or the directory from which it was calle

[Tutor] Opening files, finding their location

2005-10-08 Thread Scott Oertel
I have a small problem with one of my scripts currently, I'm using the config parser to open a config.ini file, but this program is going to be designed to be used as a cron job, currently i made a work around.. ./program.py config.ini is how you run it from the command line I'm looking for an