The textbook discusses a number of options that you have when opening files. What we have been talking about is writing sequential, formatted files. This is what you will need to do most of them time. You can consult the text to learn how to deal with some of the more rarely used options.
The textbook also talks about writing an ENDFILE record to the ends of files that you create. This is not necessary in Unix and other modern operating systems, which can tell where the end of the file is all by themselves.
Hamlet Project