I'm a beginner in C, and I face the following problem. I have multiple data files, where in each file, there are 3 lines that are the same for each file, and then the fourth line in each file have the work "result" and then a value. What I want to do is to read that value only from each file, store it to a variable for further processing.
So, how can I just read that specific value from each file? In other words, how can I skip reading the first 3 lines and the word "result" in the fourth line? or is there a way to read a value after a specific string, so that I can tell it to read what is after the word "result"?