 
      
      fileput()Write content to a file
fileput(filename, content, is_append = false)
filename (string)  — Path to the filecontent (string)  — Content to be written to filenameis_append (boolean, optional)  — If is_append is true, then content will be appended to the end of the file. The default value is false
boolean — Returns true if succeed, and returns false if otherwise
import fileio
 
fileput("log.txt", "some log\n")
fileput("log.txt", "another log\n", true)This function is available on Dinfio version 3.1.06 or later