File Operations
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fileno │ "stdio.h" │ fileno
│ Deter- │
│ │ │ │ mines the │
│ │ │ │ file │
│ │ │ │ handle. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ remove │ "stdio.h" │ remove
│ Deletes a │
│ │ │ │ specified │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ rename │ "stdio.h" │ rename
│ Renames a │
│ │ │ │ specified │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _rmtmp │ "stdio.h" │ _rmtmp
│ Closes │
│ │ │ │ and │
│ │ │ │ deletes │
│ │ │ │ temporary │
│ │ │ │ files. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ tempnam │ "stdio.h" │ tempnam
│ Creates a │
│ │ │ │ temporary │
│ │ │ │ file name │
│ │ │ │ in │
│ │ │ │ another │
│ │ │ │ direc- │
│ │ │ │ tory. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ tmpfile │ "stdio.h" │ tmpfile
│ Creates a │
│ │ │ │ temporary │
│ │ │ │ file and │
│ │ │ │ returns a │
│ │ │ │ pointer │
│ │ │ │ to that │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ tmpnam │ "stdio.h" │ tmpnam
│ Produces │
│ │ │ │ a tempo- │
│ │ │ │ rary file │
│ │ │ │ name. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ unlink │ "stdio.h" │ unlink
│ Deletes a │
│ │ │ │ file. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: File Access]
[Next: Low-Level Input/Output]