Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set fso = Application.CreateObject("Scripting.FileSystemObject")
strFile = "C:\Path\To\File\File.txt"
If fso.FileExists(strFile) Then
Set FilePath = fso.GetFile(strFile)
Set OpenFile = FilePath.OpenAsTextStream(1)
Do While Not OpenFile.AtEndOfStream
tmpStr = OpenFile.ReadLine
varArray = Split(tmpStr, "'--insert delimiter--'")
'--Do stuff with array here--'
Loop
OpenFile.Close
End If
Do While Not OpenFile.AtEndOfStream
tmpStr = OpenFile.ReadLine
' If you're testing each line as a complete
' string, you can omit the varArray line.
If tmpStr(Test1) Then
--do something--
ElseIf tmpStr(Test2) Then
--do something else--
ElseIf tmpStr(Test3) Then
--etc.--
End If
Loop