Hello developers. I'm currently working on easy, advanced and effective way for online gaming in game-editor and i am actually almost done.
But i am not sure for one thing. How can i compare text from a file, using my conditions like:
else if (line[0], ch[1] == integer) {
..
}
Prob i have to store the text into an array with fgets?
Maybe i can use something like:
if (strcmp(line[0], ch[1], integer) == 0) {
..
}
But that work only with arrays.. but directly from a text file.. i don't think they are. Well at least i tried and i couldn't figure it out.
SHORTLY: Lets say i want to use numbers from a FILE as a value of a variable.