open file to create it then close

 open (FILE,">filename");
close (FILE);

should do the trick

Regards.
Laurent.
-----Original Message-----
From: Mark Panasci [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2005 05:55
To: [email protected]
Subject: How to create a blank text file on win2k

I'm using active state perl on win2k box, and need the script to create
zero byte length text files, like the touch command does in Unix. I've
been searching around for a couple of days now and haven't found
anything. 
Surely there's an easy way to do this? Thanks!

--
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/>
<http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to