Guest_imported
New member
- Jan 1, 1970
- 0
I have a file that I wish to open and read data in from.... here is my code...
$FILE = "$rfile"; #rfile is a string representing the name of the file
opendir (DIR, "/kronos/user/mrdeza/datas/"
or nodir(); #open the directory where the file is
open (FILE) or die("$!, stopped"
;
@lines= <FILE>; #read in the desired file
close (FILE);
closedir (DIR);
Now the file is present in the given directory... and its persmissions grant readability... I just don't know what the fu#* is wrong. The error messages tell me that the file is not present. Thanks for any help, and all is appreciated.
$FILE = "$rfile"; #rfile is a string representing the name of the file
opendir (DIR, "/kronos/user/mrdeza/datas/"

open (FILE) or die("$!, stopped"

@lines= <FILE>; #read in the desired file
close (FILE);
closedir (DIR);
Now the file is present in the given directory... and its persmissions grant readability... I just don't know what the fu#* is wrong. The error messages tell me that the file is not present. Thanks for any help, and all is appreciated.