I am passing a string as an argument to my program and extracting its position in a text file.
Can we read a text file only upto this certain position in C?? If yes, then please tell me how.
I am passing a string as an argument to my program and extracting its
Share
Just use fread() up to the number of bytes that puts you to that “position” in the file. For example, if you know you want to read up to the position at 1928 bytes, just read that many bytes in with fread.