in reply to Clear the contents of the text file

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.

Replies are listed 'Best First'.
Re^2: Clear the contents of the text file
by james28909 (Deacon) on Jul 22, 2015 at 05:54 UTC
    I was about to say the same