| | | | | |

Meaning of File Modes

Open Mode Effect Effect with ...|ate
in Opens text files for reading, initial position at beginning of file Initial position is at end of file
out
out|trunc
Truncates file to empty, or creates file, for write only No effect on empty file
out|app Appends; opens or creates text file for writing at end of file No additional effect
in|out Opens file for update (read or write), with position at beginning of file Position is at end of file
in|out|trunc     Opens file for update, truncates to empty No effect on empty file

With the binary flag added (...|binary), all conversions are suppressed.
This is like a binary data copy.


| | Top of Page | Appendix 3: I/O - 10 of 20