I want to write to a text file with limited size (1KB for example)
and when the file reaches the maximum size I want the first half to be removed and continue writing to the file (append to what remained after removing first half).
is this possible in C++?
file that reached maximum size:
1 2 3 4 5 6
and I want to continue writing [7,9]
the new file will look like:
4 5 6 7 8 9