A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Quick and Easy CGI question

  1. #1
    Human Being
    Join Date
    Apr 2001
    Location
    The 'net
    Posts
    158

    Quick and Easy CGI question

    Just a quick CGI question: How do I make this line for opening a text file not for append mode, but for overwriting? So that when new information is put in the file, the old content is deleted?
    Code:
    open(OUT, ">>".$file2) or die "Error opening file : $!";
    I'm trying to teach myself CGI from examples. Thanks!
    -GSM (Tim)

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    405
    >> Opens the file for appending
    > opens the file for writing
    none opens it for reading.

  3. #3
    Human Being
    Join Date
    Apr 2001
    Location
    The 'net
    Posts
    158
    Thanks!
    -GSM (Tim)

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Posts
    405
    yer welcome
    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center