Tony Frasketi wrote:
Hello Listers

Is there any way in perl to effectively clear the contents of an ***existing*** file  (making the file empty) ?  I have a log file that I'd like to empty out after it reaches a certain maximum file size.

thanks in advance
Tony

just opening the file in write mode will empty the file ..

open FD, ">filename";



--
Get Thunderbird

Reply via email to