Hi,
I would like to know how to add the current time in my Modification column. This column is emty. This file is a text file and I dod not know how to create a script using ADO. Please advice. This is what I have so far.
'On Error Resume Next
Const ForReading = 1
Const ForWriting = 2
'open the data file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\data\abc.csv", ForReading)
strContents = objFile.ReadAll
objFile.Close
strFirstLine = "First Name, Middel int, Last name, Start Date, ModificationDate"
strNewContents = strFirstLine & vbCrLf & strContents
Set objFile = objFSO.OpenTextFile("C:\data\abc.csv", ForWriting)
objFile.WriteLine strNewContents
objFile.Close
I would like to know how to add the current time in my Modification column. This column is emty. This file is a text file and I dod not know how to create a script using ADO. Please advice. This is what I have so far.
'On Error Resume Next
Const ForReading = 1
Const ForWriting = 2
'open the data file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\data\abc.csv", ForReading)
strContents = objFile.ReadAll
objFile.Close
strFirstLine = "First Name, Middel int, Last name, Start Date, ModificationDate"
strNewContents = strFirstLine & vbCrLf & strContents
Set objFile = objFSO.OpenTextFile("C:\data\abc.csv", ForWriting)
objFile.WriteLine strNewContents
objFile.Close