How can I append a line of text to the beginning of a file?
This lets me add the line at the end .. but i can't seem to find an example of adding to the beginning. Thanks for the help in advance.

(don't mind the code this is my first script, and i just started working on it today.)

----Code-----
If Exist ("c:\" + @USERID + "\v1.prf")
Exit
Else
MD ("c:\" + @userid + "\")

Copy "v1.dat" ("c:\" + @userid +"\v1.dat")

$Handle = FreeFileHandle()
IF $Handle > 0
IF Open($Handle,"c:\" + @userid + "\v1.dat", 4) = 0
$x = Writeline($Handle, "USER=" + @userid)
Close($Handle)
ENDIF
ENDIF
EndIF
exit
-------End Code-----

[ 11. May 2003, 01:03: Message edited by: Ozmodius ]