Jul-27-2018, 06:37 AM
As far as the first solution goes - file object opened for reading does not follow dynamic changes to the file content. You may store the last read position and reopen file and read from that position (
readline
will not work), but that will require some partial string management
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.