C95. Playing with file Pointer position | fseek, rewind and ftell functions in C

Опубликовано: 19 Июнь 2026
на канале: Tech Courses
174
6

In this video we are going to discuss about setting file pointer position in C.

Summary :
We can set file pointer position using fseek and rewind functions in c.
Also we can get current pointer position using ftell function.

feek(filePtr, offset, location)
Set file pointer to specified position
rewind(filePtr)
Set file pointer to beginning
ftell(filePtr)
Gives current file pointer position

In fseek function :
1. Offset can be either positive or negative
2. Location can be one of below :
SEEK_SET - Beginning of file
SEEK_CUR - Current position of filePtr
SEEK_END - End of file

Audio language : Hindi
In this course , we are going to cover all C concepts in simple and easy to understand terms.
This course started from basics and now we are covering advance topics that are important from interview point of view.

Github : https://github.com/TechCourses4u/C-La...
Programs :
https://github.com/TechCourses4u/C-La...

sample.txt file :
https://github.com/TechCourses4u/C-La...