University of Houston–Clear Lake

The file object (see later) has many methods that can manipulate the file object, like the string object we saw earlier. We use the object methods to read the contents of the file and to close the file. You will need to re-open a closed file (get another file object) if you want to read from it again. ................
................