fileObj.write(string)
fileObj.writeln(string)
fileObj.writeByte(number)
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
Leave a Reply
You must be logged in to post a comment.