I need to send a file to a function.
Before I sent the file I read a few lines.
How do I make sure that in the function I can read the file from where I left off?
file.Readline/Read returns the next line/bytes from a file, so it should keep the current position by default.
This is assuming you are using the same file object to read the file in both places and that you are not re-opening the file.
You must be logged in to reply to this topic.