Gregg O'Donnell wrote: > Greetings all! I have data that is output from a form.
OK. I assume you mean an HTML form and your script is a CGI script. > How do I take > this data, save it as a .txt file, and place this .txt file in > another location (a different folder, not cgi-bin) on my server? Just open the file, specifying the full path to it. The write the data to the file in whatever format you want: open my $fh, ">/path/to/file.txt" or die $!; print $fh "Blah blah"; close $fh; > Also, each time a .txt file is created, it should "overwrite" the > previous file OK, that will happen because of the ">" in the open() call. That opens the file for output, zapping any previous contents of the file (or creating the file if it doesn't exist). > ( I assume this is handled with directory permissions). If this is Unix or similar, you'll need write permission in the directory and execute permission on the directory and all its ancestors. The overwriting is conrolled by the open() mode. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>