In building a non-trivial application, you need to be able to read and write data from a file.
It can be customer information, data about merchandise, or student grades. This is a basic procedure in almost every application.
result=fileObjectName.open (“mode”)
The result is true if the file was opened successfully; otherwise it is false.
fileObj.write(string)
fileObj.writeln(string)
fileObj.writeByte(number)
fileObj.read(count)
fileObj.readln()
fileObj.readByte()
You must be logged in to post a comment.