June 2005
Beginner
480 pages
10h 31m
English
If you're adventurous, you can do random reads and writes within a file, as previously mentioned. The following sections briefly cover some tools you'll need to do random reads and writes; they are not covered more extensively because you shouldn't need them often.
Until now, you've looked at three methods for opening files. Files could be opened for reading, they could be opened for writing, or they could be opened for appending. Files can also be opened for both reading and writing at the same time. Table 15.1 lists the various modes available for opening files.
| open Command | Reading? | Writing? | Append? | Creates If Does Not Exist? | Truncates Any Existing Data? |
|---|---|---|---|---|---|
| open(F, ... |
Read now
Unlock full access