Try....
----------------------------
$Directory=<your directory here>
$file="$directory.$file.txt";  # don't forget to add "\" between dir and
file

open FH, ">$file" or die "Cannot open $file:$!"; 

print FH "blah  \n";
print FH ""blah  \n";
print FH ""blah  \n";

close FH;
----------------------------

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 4:10 PM
To: [EMAIL PROTECTED]
Subject: input output append


HI,
anyone knows the right syntax for  reading and writing (appending) to a
file.
I tried this and it didn't seem to work
open (FH,"+< file.txt" )

Thanks

I.S


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to