> 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
-- 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
> 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
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
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
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
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
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
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