On Thu, 31 May 2001, Nichole Bialczyk <[EMAIL PROTECTED]> wrote,

> Date: Thu, 31 May 2001 01:00:49 -0500
> From: Nichole Bialczyk <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: writing to a text file
> 
> i'm trying to write a log file and i can't seem to open it to write to. the file 
>does exist. here is the code for opening the file:
> 
> if(! open(LOG, ">xxx.txt)) {
>    print "Content-type: text/html\n\n";
>    print "Can't open xxx.txt\n";
>    exit;
> }

If you put $! in the line, you'll find out why,

    print "Can't open xxx.txt: $!\n";


hth
s.a.n
-- 
Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com

Reply via email to