I need to maintain a text file which contains only 10 lines.
As a new line is added to the top - a line is removed from the bottom.
So although the file is automatically updated regularly it will always contain only 10 lines.
I know how to create a new text file but not how to add a line of text to the top or remove a line from the bottom.
Any assistance would be great,