. Visit BoxedArt.com



Home | Link Us | Contact Us | Advertise



Big Resources
1-Click-Clipart
123Webmaster
A1Javascripts
Boxed Art
Font Files
FreeWare Files
FreeWebTemplates
Fresher Image
HTML Forums
Perl Access



 


Perlaccess : Tutorials : File and Directory
Creating New Files (12.2)
by Jacob A. Wheeler
http://www.bigresources.com

Below is how you create a new file:

open(FILE,">filename.txt");
print FILE "Writing to file\n";
close(FILE);
'>' Creates a new file (filename.txt) and opens it for writing.

Some other input/output operator's:
'<' open file for reading
'>>' open file for appending
'| output-pipe-command' set up an output filter
'input-pipe-command |' set up an input filter



Mascot team created by Drawshop.com