I know this is possible. I remember seeing it on w3schools but I cant go there because its down.

But heres what I want to do and not sure of how to do it:

i have a text file called: editable.txt
in side of editable I have 10 lines
Code:
10
9
8
7
6
5
4
3
2
1
I need an asp script that will open the editable.txt and delete the last line (1)
and insert on the top line what ever I have stored in a varible, and then save it.

so that in the end it will be like this:
Code:
whatever is in the varible
10
9
8
7
6
5
4
3
2