I have the following code
Dim objFSO As FileSystemObject
Dim objTS As TextStream
Dim strPath As String
Dim strLine As String
Set objFSO = New FileSystemObject
strPath = "c:\vb\files.txt"
Set objTS = objFSO.OpenTextFile(strPath, ForReading)
Do While objTS.AtEndOfStream = False
lst_vragen.AddItem (objTS.ReadLine)
Loop
how do i the get the path to the files.txt relative ?
Dim objFSO As FileSystemObject
Dim objTS As TextStream
Dim strPath As String
Dim strLine As String
Set objFSO = New FileSystemObject
strPath = "c:\vb\files.txt"
Set objTS = objFSO.OpenTextFile(strPath, ForReading)
Do While objTS.AtEndOfStream = False
lst_vragen.AddItem (objTS.ReadLine)
Loop
how do i the get the path to the files.txt relative ?