Re: read and write to same file

2002-04-08 Thread John W. Krahn
Arvind Baldeo wrote: > > Hi All, Hello, > Can some one please look at my code ad see what I am doing wrong. > > For some reason it is not working. The idea is to search the file using the > commandline argument. It is supposed to read the file and if a match is > found, it outputs to another

Re: read and write to same file

2002-04-08 Thread Sudarsan Raghavan
Arvind Baldeo wrote: > Hi All, > > Can some one please look at my code ad see what I am doing wrong. > > For some reason it is not working. The idea is to search the file using the > commandline argument. It is supposed to read the file and if a match is > found, it outputs to another file. If a

read and write to same file

2002-04-08 Thread Arvind Baldeo
Hi All, Can some one please look at my code ad see what I am doing wrong. For some reason it is not working. The idea is to search the file using the commandline argument. It is supposed to read the file and if a match is found, it outputs to another file. If a match is not found is appends th