hi,
If you open a file to write:
then perl will create the file if it doesn't exist... but what I want to know is how I find out whether the file needed to be created...
The reason why is that is the file is just created I would like to put something standard in the file... a default-txt... that gets edited during my program... So to put a standard something in a file, I need to know whether the file needed to be created... and just making the file and editing it manually isn't an option cause the filename is dynamic... (generated by the current date)
Can anyone help?
Thanx in advance,
math
If you open a file to write:
Code:
open(FILE, ">file.txt");
...
The reason why is that is the file is just created I would like to put something standard in the file... a default-txt... that gets edited during my program... So to put a standard something in a file, I need to know whether the file needed to be created... and just making the file and editing it manually isn't an option cause the filename is dynamic... (generated by the current date)
Can anyone help?
Thanx in advance,
math