File Positioning
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fgetpos │ "stdio.h" │ fgetpos
│ Gets the │
│ │ │ │ current │
│ │ │ │ position │
│ │ │ │ of the │
│ │ │ │ file │
│ │ │ │ pointer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fseek │ "stdio.h" │ fseek
│ Moves the │
│ │ │ │ file │
│ │ │ │ pointer │
│ │ │ │ to a new │
│ │ │ │ location. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ fsetpos │ "stdio.h" │ fsetpos
│ Moves the │
│ │ │ │ file │
│ │ │ │ pointer │
│ │ │ │ to a new │
│ │ │ │ location. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ftell │ "stdio.h" │ ftell
│ Gets the │
│ │ │ │ current │
│ │ │ │ position │
│ │ │ │ of the │
│ │ │ │ file │
│ │ │ │ pointer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ lseek │ "io.h" │ lseek
│ Moves a │
│ │ │ │ file │
│ │ │ │ pointer │
│ │ │ │ to a new │
│ │ │ │ location. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ rewind │ "stdio.h" │ rewind
│ Reposi- │
│ │ │ │ tions the │
│ │ │ │ file │
│ │ │ │ pointer │
│ │ │ │ to the │
│ │ │ │ beginning │
│ │ │ │ of the │
│ │ │ │ file. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Direct Input/Output]
[Next: File Access]