Could anyone point me towards a method of cycling a binary file in Python? I have a file full of 4 byte integers basically and when the file reaches a certain size, i.e. a certain number of values have been written, I want to start removing one from the start and adding one at the end.
I'm still reasonably new to Python, so just trying to think of a neat way of doing this.
Thanks.