inhistime has asked for the wisdom of the Perl Monks concerning the following question:
The value of $outputFileName is /home/myung/ns-allinone-2.28/ns-2.28/COMP_TC/result/RW/K9-RW.
Except the file name itself (K9-RW), all directories exist.
I want to create a file called "K9-RW" and write to it.
So I did programming as follows.
But I got an error like the below.sysopen(OUTPUT_HANDLE, $outputFileName, O_WRONLY|O_APPEND|O_CREAT, 060 +0) or die " Can't open $outputFileName : $!";
what is wrong with my coding? Please help me out. Thank you.[myung@mirim script]$ conn.pl 100 1 2 9 Can't open /home/myung/ns-allinone-2.28/ns-2.28/COMP_TC/result/RW/K9-R +W : No such file or directory at ./conn.pl line 128.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is wrong with my File open?
by sauoq (Abbot) on Nov 19, 2005 at 02:49 UTC | |
by inhistime (Initiate) on Nov 19, 2005 at 03:09 UTC | |
by jkeenan1 (Deacon) on Nov 19, 2005 at 04:16 UTC | |
|
Re: What is wrong with my File open?
by dave_the_m (Monsignor) on Nov 19, 2005 at 00:00 UTC | |
|
Re: What is wrong with my File open?
by runrig (Abbot) on Nov 19, 2005 at 00:11 UTC |