Is there a way in Pascal to write to the start of a file, without overwriting other data?
I have learnt Seek(F, 0);but this overwrites the first thing in the file.
Seek(F, 0);
You may achieve your goal with the following algorithm: