Source |
CodingSec |
Identifiant |
358795 |
Date de publication |
2017-04-25 16:04:42 (vue: 2017-04-25 16:04:42) |
Titre |
How to use ftell, rewind and fseek in C Programming |
Texte |
All the functions that we have seen so far are useful for reading and writing data sequentially to and from a file. Sometimes the user might want to access data at random locations from a file. For this purpose, C library provides functions namely: ftell, fseek and rewind. The ftell function lets the user to know the current location of the file pointer. It takes a file-pointer as a parameter and returns a long integer that corresponds to the current position of the pointer. Syntax is a shown below: 1 long ftell(file–pointer) The rewind function lets the user to move
|
Envoyé |
Oui |
Condensat |
access all appeared are below: coding corresponds current data far file file–pointer first from fseek ftell function functions have how integer know lets library location locations long might move namely: parameter pointer position post programming provides purpose random reading returns rewind security seen sequentially shown sometimes syntax takes use useful user want writing |
Tags |
|
Stories |
|
Notes |
★★★★
|
Move |
|