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
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
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]