Does the fgets()
function move the file pointer automatically to the position till the parameter of the size mentioned by me?
for example:
the content of the file p.txt is " I am a good boy "
. After using fgets(a, 5, fp1)
does the file pointer move 5 positions ahead?
FILE*
is not modified byfgets()
. The file offset may be (if the file is seekable). – Alphonsefgets()
is a duplicate of a question aboutfread()
? – Dulebafgets
. Successivefgets
will not return the same data. No problem. – Mylohyoid