I am trying to read in a log text file from a network drive based on inputbox value. The file contains names of files that had been scanned in for that day. I need to write the contents of the text file to a vb6 listbox that will allow me to open one or multiple files the user chooses. The files are in .pdf format. This is what I have but it will not work.
gdate = Format(frmSelectionReader.txtDate, "yyyy-mm-dd")
path = "network drive\" & gdate
LstFile2.Pattern = "*.txt"
' LstFile2.path = path
If Right(path, 1) <> "\" Then
path = path & "\"
All I get is the file name not the contents inside the file