i wanted to reach the end of the file. But it wasn't working so i tried use a loop to move the cursor all the way to end of the file, but it resulted in a endless loop. This could only mean that there is no special character that acts as a delimiter for my file, which is why when i used seekend() it didn't work because it couldn't find the delimiter character, same reason why using the loop resulted in an endless loop, because it couldn't find that delimiter and resulted in reading beyond the original file, which could also mean my saving to file function is lacking. Which is why I am asking how seekend() works so that I can add a delimiter.
P.S. I tried the c or c++ delimiter which is "\0"
this resulted in an error