Also, many of the functions that I need only works for strings, such locating with the coordinates.
I do not know how to avoid this problem.
So, write the functions properly so that they do not take strings.
More specific answers will require that you stop waving your arms around wildly, and give specific examples of what you are trying to do.
Can you please further explain or give me some places where I can write my functions properly,
I would like to learn some more knowledge about a way of locating the text without turning the entire text into a string but instead turning only the line I am looking for into a string.
but how do you rewrite data in the file while knowing it's exact location?