CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Would this create a new file?

 



alantyss
Deleted

Jul 28, 2000, 6:13 AM

Post #1 of 2 (742 views)
Would this create a new file? Can't Post

Will the code below make a new file rawdata.txt if it does not exist? And will opening it with >> allow me to constantly append a new line of text into the file?

$newoutfile = "rawdata.txt";
open (OUTFILE, ">>$newoutfile")or die "Cannot write to file rawdata.txt; $!\n";




gawen
Deleted

Jul 28, 2000, 7:26 AM

Post #2 of 2 (742 views)
Re: Would this create a new file? [In reply to] Can't Post

yeap

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives