Erase all existing content
f = "log.messages" # Filename File.truncate(f, 0) # Erase all existing content