You should probably use an absolute path here or chdir() to where you want to write the file. Although it depends on your web server and configuration, a CGI process generally does not start off with its current directory equal to the directory where the script is found.open(PRES, ">>poll_results.txt")
In reply to Re: Cannot open file for appending
by Thelonius
in thread Cannot open file for appending
by Doe-Eyed Innocent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |