jl66
asked on
how to empty a file with DOS shell or Perl
In Unix, empty a file with
touch file.txt
or
> file.txt
In DOS or Perl, is anything similar I can use? For example,
07/04/2009 06:20 PM 2,945 file.txt
Want it to be
07/04/2009 06:22 PM 0 file.txt
touch file.txt
or
> file.txt
In DOS or Perl, is anything similar I can use? For example,
07/04/2009 06:20 PM 2,945 file.txt
Want it to be
07/04/2009 06:22 PM 0 file.txt
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
copy nul file.txt
No error, no contents.