Briefly explain about positioning functions in files.
Answers
Answered by
1
I hope help you
Other Inbuilt file handling functions in C programming language:
File handling functionsDescriptionfseek ()fseek () function moves file pointer position to given location.SEEK_SETSEEK_SET moves filepointer position to the beginning of the file.SEEK_CURSEEK_CUR moves filepointer position to given location
please mark brain list ♥♥♥♥
Other Inbuilt file handling functions in C programming language:
File handling functionsDescriptionfseek ()fseek () function moves file pointer position to given location.SEEK_SETSEEK_SET moves filepointer position to the beginning of the file.SEEK_CURSEEK_CUR moves filepointer position to given location
please mark brain list ♥♥♥♥
Answered by
0
Briefly explain about positioning functions in files.
- Where a stream is now reading or writing in a file is indicated by the stream's file position. The location of the file is advanced through the file via I/O on the stream.
- On GNU-based systems, the file position is displayed as an integer that counts the bytes back from the file's start. In order to enable precise definition of the following record to be accessed within a given file during specified sequences of input-output operations, the file position indication is a conceptual entity utilised in this document. With a file opened in the output or expand mode, the idea of a file location indicator is meaningless.
- Use the seek() method to modify the file handle's position. The seek() method, which we discussed, determines the file's current position, from which we can read from or write to the file.
- The lseek function on a file descriptor or the fseek function on a stream can be used to modify the file position (see Input and Output Primitives). The ESPIPE issue occurs if you attempt to alter the file position on a file that doesn't support random access.
#SPJ3
Similar questions