Windows - create text file - (newb)
Larry Bates
larry.bates at websafe.com
Thu Feb 2 17:01:20 EST 2006
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) ?
>
More information about the Python-list
mailing list