G
gumby
I need to be able to open a file, read a file, then close a file with
out perl rewriting the TimeStamp on the file. I was able to do this
in C++ but not perl, and currently we are rewriting our old C code to
perl.
Here is what i am using currently
unless(open FILE, $fileName)
{
#here i pop an TK error window
}
while(<FILE>)
{
#Read and process the information so i can display it
}
close FILE;
I have looked into, since i already detect the timeStamp on the file,
keeping that timeStamp in memory then when i close the file using
utime to rewrite the Timestamp. I havent run any tests to see how
well that would work yet. Was just wondering if someone else has had
the same issue(I didnt see anything in the perldoc).
out perl rewriting the TimeStamp on the file. I was able to do this
in C++ but not perl, and currently we are rewriting our old C code to
perl.
Here is what i am using currently
unless(open FILE, $fileName)
{
#here i pop an TK error window
}
while(<FILE>)
{
#Read and process the information so i can display it
}
close FILE;
I have looked into, since i already detect the timeStamp on the file,
keeping that timeStamp in memory then when i close the file using
utime to rewrite the Timestamp. I havent run any tests to see how
well that would work yet. Was just wondering if someone else has had
the same issue(I didnt see anything in the perldoc).