Question on File Input and AST
subhakolkata1234 at gmail.com
Sun Sep 6 09:53:43 CEST 2009
I have a file "test1.txt". Now, as I do the file handling, i try to do
any one of the following operations.
1. open_file=open("/python26/test1.txt","r") # FOR READING
2. open_file=open("/python26/test1.txt","r+") # FOR READING AND
[Either of 1 or 2 to open as the need be]
But how to work with "fileinput" or "ast".
I tried to read python docs and some backlog question answer in the
group but it did not help much.
If any one can kindly give one or two small examples. It would help me
More information about the Python-list