Re: [PBML] problem in reading data from file (file handling )
>>>>> "KalyanRaj" == KalyanRaj <kalyanrajs@...> writes:KalyanRaj> Yes, you can use different filehandlers to read and write to a file.
KalyanRaj> open (MYFILE, 'file_me.txt');
KalyanRaj> open (OUTFILE,'>>out_me.txt');
Always check the return value of open.
open MYFILE, "file_me.txt" or die "Cannot open file_me.txt: $!";
and so on.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!