
onephattai
Novice
Apr 22, 2009, 5:17 PM
Post #1 of 3
(291 views)
|
|
Cannot open .txt file
|
Can't Post
|
|
I cannot open the file by doing this. Can someone point out that I did wrong here? Thanks open (INFILE, "$ARGV[0] || die "Cannot open $ARGV[0] for reading.\n"; open (OUTFILE, "$ARGV[1] || die "Cannot open $ARGV[1] for writing.\n"; So basically the command line would look like this: perl script.pl textfile1.txt textfile2.txt but I cannot open textfile1.txt for reading.
(This post was edited by onephattai on Apr 22, 2009, 5:52 PM)
|