Most efficient way to “nibble” the first line of text from a text document then resave it in python
问题 I have a text document that I would like to repeatedly remove the first line of text from every 30 seconds or so. I have already written (or more accurately copied) the code for the python resettable timer object that allows a function to be called every 30 seconds in a non blocking way if not asked to reset or cancel. Resettable timer in python repeats until cancelled (If someone could check the way I implemented the repeat in that is ok, because my python sometimes crashes while running