in reply to Clearing out the file

Thanks for your answers. truncate works for me.