Re: Opening and Writing to Files

2002-07-18 Thread John W. Krahn
Carrie Lyn Brammer wrote: > > I've looked throgh the recent archives. A lot of what > is being discussed seems too 'advanced' for me. I guess > i'm a REAL baby newbie. > > Can someone please look at the following project, and > tell me why it is not writing the contents of the > readfile.txt to

Re: Opening and Writing to Files

2002-07-18 Thread Mat Harris
you need to add the name of the target filehandle when you write to it. for example: if you open writefile.txt with the filehandle WRITE, you must print to it like so: print WRITE "add some text"; At 18:18 18/07/2002 -0500, Carrie Lyn Brammer wrote: >I've looked throgh the recent archives. A

Re: Opening and Writing to Files

2002-07-18 Thread Connie Chan
>> print (@contents); You have to print to the file handle, otherwise, nothing will write to WRITEFILE, but to screen only. So, you have to write as : print WRITEFILE @contents; >> @newcontents = ; >> print "\n The contents of writefile.txt is $newcontents \n"; No, $newcontents here will prin

Opening and Writing to Files

2002-07-18 Thread Carrie Lyn Brammer
I've looked throgh the recent archives. A lot of what is being discussed seems too 'advanced' for me. I guess i'm a REAL baby newbie. Can someone please look at the following project, and tell me why it is not writing the contents of the readfile.txt to the writefile.txt? It's tough to learn