I want to set the current position in a textfile one line back.
Example:
I search in a textfile for a word "x".
Textfile:
- Line: qwe qwe
- Line: x
- Line: qwer
- Line: qwefgdg
If i find that word, the current position of the fobj shall be set back one line. ( in the example I find the word in the 2. Line so the position shall be set to the beginning of the 1. Line)
I try to use fseek. But I wasn't that succesfull.