i want to write lines into a txt file one at a time, however when doing this they get inputted in this order:
first input
second input
third input
forth input
however, i want to to be inputted as:
forth input
third input
second input
first input
This is making it so the most recently written line is always on the first line in the txt file, pushing the others down. I have searched quite a bit for how to do this and I've also tried to take the lines and move them all down when writing a new line, however I either haven't been able to get the desired result or I cant think of the code to make the ideas work. Is this possible?