If you are not worrying about programs colliding you might be able to get away with this code.
open(MYFILE, ">E:/Temp/INYROHS/serverlist.txt"); close(MYFILE);
The '>' sign creates a new file for writing erasing the old one.
In reply to Re: Clear the contents of the text file
by kernal
in thread Clear the contents of the text file
by shroh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |