got it . thanks tons. i'm doing the tutorial now.
--
http://mail.python.org/mailman/listinfo/python-list
Yes. You could do:
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> fileobj=open('~\myfile.txt','w')
>>> fileobj.write("test")
>>> fileobj.close()
On Windows, for
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, a
"Ernesto" <[EMAIL PROTECTED]> writes:
> Can Python be used to create (and/or open, read, and write) a text file
> in Windows (if the path is known) ?
Yes.
--
Jorge Godoy <[EMAIL PROTECTED]>
"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anythin
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