I would like to be able to write to a text file so the new stuff is at the top of the file.
i.e.
INSTEAD OF:
TEST1
TEST2
TEST3
TEST4
TEST5
I WOULD LIKE:
TEST5
TEST4
TEST3
TEST2
TEST1
Not for sure how to accomplish this: Thanks for the help
Here is my existing code
'create reference to Microsoft Scripting Runtime
On Error Resume Next
Dim fso As Object
Dim txtFile As Object
Dim ErrorLogDir As String
ReportDir = "M:\SAPS\TRP\trp_reports\1PrintDetails.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set txtFile = fspenTextFile(ReportDir, ForAppending)
txtFile.Skip (2)
txtFile.WriteLine "Test9
i.e.
INSTEAD OF:
TEST1
TEST2
TEST3
TEST4
TEST5
I WOULD LIKE:
TEST5
TEST4
TEST3
TEST2
TEST1
Not for sure how to accomplish this: Thanks for the help
Here is my existing code
'create reference to Microsoft Scripting Runtime
On Error Resume Next
Dim fso As Object
Dim txtFile As Object
Dim ErrorLogDir As String
ReportDir = "M:\SAPS\TRP\trp_reports\1PrintDetails.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set txtFile = fspenTextFile(ReportDir, ForAppending)
txtFile.Skip (2)
txtFile.WriteLine "Test9