Yes.

To open file:

fp=open(r'C:\directory\filename.txt','r')

To open file to write to:

fp=open(r'C:\directory\filename.txt','w')

You probably need to go through the Python tutorial as
these items are covered.

-Larry Bates




Ernesto wrote:
> Can Python be used to create (and/or open, read, and write) a text file
> in Windows (if the path is known) ?
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to