I currently have the code:
Function WriteLineToFile(filename)
Set AFileStream = FSO.OpenTextFile(DATA_PATH & filename, 8)
AFileStream.WriteLine filename
End Function
It writes the filename that it is passed to the correct file (which is a .dat file) ok. The problem is that it appends it on a new line at the end of the file. I need it to be put in as the first line above everything else.
Can anyone help I would really appreciate it?
Function WriteLineToFile(filename)
Set AFileStream = FSO.OpenTextFile(DATA_PATH & filename, 8)
AFileStream.WriteLine filename
End Function
It writes the filename that it is passed to the correct file (which is a .dat file) ok. The problem is that it appends it on a new line at the end of the file. I need it to be put in as the first line above everything else.
Can anyone help I would really appreciate it?