File Access
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fclose │ "stdio.h" │ fclose
│ Closes a │
│ │ │ │ specified │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _fcloseall │ "stdio.h" │ _fcloseall
│ Closes │
│ │ │ │ all open │
│ │ │ │ streams, │
│ │ │ │ except │
│ │ │ │ the │
│ │ │ │ standard │
│ │ │ │ streams. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fdopen │ "stdio.h" │ fdopen
│ Associ- │
│ │ │ │ ates an │
│ │ │ │ input or │
│ │ │ │ output │
│ │ │ │ stream │
│ │ │ │ with a │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fflush │ "stdio.h" │ fflush
│ Causes │
│ │ │ │ the │
│ │ │ │ system to │
│ │ │ │ write the │
│ │ │ │ contents │
│ │ │ │ of a │
│ │ │ │ buffer to │
│ │ │ │ a file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _flushall │ "stdio.h" │ _flushall
│ Writes │
│ │ │ │ the con- │
│ │ │ │ tents of │
│ │ │ │ buffers │
│ │ │ │ to files. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fopen │ "stdio.h" │ fopen
│ Opens a │
│ │ │ │ specified │
│ │ │ │ stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ freopen │ "stdio.h" │ freopen
│ Closes a │
│ │ │ │ file and │
│ │ │ │ reassigns │
│ │ │ │ a stream. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ setbuf │ "stdio.h" │ setbuf
│ Allows │
│ │ │ │ control │
│ │ │ │ of buf- │
│ │ │ │ fering. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _setmode │ "io.h" │ _setmode
│ Sets the │
│ │ │ │ trans- │
│ │ │ │ lation │
│ │ │ │ mode of a │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ setvbuf │ "stdio.h" │ setvbuf
│ Controls │
│ │ │ │ buffering │
│ │ │ │ and │
│ │ │ │ buffer │
│ │ │ │ size for │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ stream. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: File Positioning]
[Next: File Operations]