- open(FH, 'path/to/file.txt') or die "$!";
-
while(<FH>) {
-
perform a certain set of operations
-
}
-
close FH;
Hi,
I tried the following thing :
-
open (OUT, $filename) || die "Can't open the File $!\n";
-
-
while(<OUT>)
-
{
-
print "$_";
-
}
-
close(OUT);
-
-
the value of file name is "H:\cgi\cgi\cgi\Klocwork\clearquest.txt".
this doesnt open the file. and Displays :
Software error:
Can't open the File No such file or directory
This happens, when i open the file irrespective of the directory where the source code is stored or not.
Can anyone tell why this problem is occuring?
Thank You,
Ravi