Re: Question on File Input and AST

2009-09-08 Thread joy99
On Sep 6, 1:49 pm, Steven D'Aprano wrote: > On Sun, 06 Sep 2009 00:53:43 -0700,joy99wrote: > > Dear Group, > > > 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. > > o

Re: Question on File Input and AST

2009-09-06 Thread Steven D'Aprano
On Sun, 06 Sep 2009 00:53:43 -0700, joy99 wrote: > Dear Group, > > 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 RE

Question on File Input and AST

2009-09-06 Thread joy99
Dear Group, 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 WRITING BOTH [Either of 1 or 2 to open as the need be]