The file object provides three methods of writing data to a file. These methods allow you to write a string, write a string followed by a n , or write a single byte to a file.
Each method returns true if successful; otherwise it returns false.The syntax is
fileObj.write(string)
fileObj.writeln(string)
fileObj.writeByte(number)
