in reply to File open issue
What is the warning that you get? And when you use or die $!;, what is the output?
Dave
if(-r $tempfile) { open (TMPFILE, "$tempfile") or die "Can't open $tempfile: $!"; (@tmpfile) = <TMPFILE>; close TMPFILE; }else { $nofile = "1"; } [download]