fileObj.read(count)
fileObj.readln()
fileObj.readByte()
Just as there are three methods of writing to a file, so there are three methods to reading a file.
You can read a specific number of bytes, read in the entire next line, or read in a single byte. 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.