Fseek & Fgetchar help
#1

Hello everyone, can anyone tell me which function should I use to get a character from a file?
I should use Fseek or Fgetchar?
For example, I only want the first line of the file and the third line, how can I get it?
Reply
#2

Fseek sets the current position in the file, fgetchar gets the char at the current position, so you need both.

https://sampwiki.blast.hk/wiki/Fseek
https://sampwiki.blast.hk/wiki/Fgetchar
Reply
#3

Then how can I get a specific char in a file? like line 1 line 2?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)