Priti24 has asked for the wisdom of the Perl Monks concerning the following question:
i want to create a file of size 1MB and also i want write on it. How to give size to a file the time of creation????
open (PP, ">/home/abc/filename.txt") or die $!; print pp $string; close PP;
i have to write logs in this file.another question is-->>> is this possible to create a different-different log files for different - different dates??? if possible then please tell me how????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to give size to a file at the time of creation
by Random_Walk (Prior) on May 03, 2013 at 07:52 UTC | |
by Tux (Canon) on May 03, 2013 at 08:00 UTC | |
by Random_Walk (Prior) on May 03, 2013 at 08:59 UTC | |
|
Re: how to give size to a file at the time of creation
by soonix (Chancellor) on May 03, 2013 at 09:31 UTC | |
|
Re: how to give size to a file at the time of creation
by hdb (Monsignor) on May 03, 2013 at 06:02 UTC |