Hey,
I have a question about while loop.
Let's say I want to read from a file with a while loop:
PHP Code:
new Handle:File = OpenFile("file.txt", "r")
new String:buffer[128]
while(!IsEndOfFile(File))
{
ReadFileLine(File, buffer, sizeof(buffer))
PrintToServer("%s", buffer)
}
How the function "ReadFileLine" knows what line to read every time the loop start over?
I mean it starts from the top but how it knows how to read all the file?
I don't see here a option to set a line number or something like that, and yet, it is still reading the next line.
Any explanations?
Thanks in Advance