Public Function ReadFile(ByVal Filename As String, Optional ByVal ReadBinary As Boolean = True) As String
Reads a file in the file system and returns the value as a string. Returns an empty string if not found.
Public Function ImportFile(pFileName As String)
Dim lFile As clsString = New clsString(ReadFile($"C:\Temp\Imports\{pFileName}"))
Dim lLine As String
Do While lFile.Length > 0
lLine = lFile.GetStringPart(vbCrLf)
SendDebug lLine
'Do something with the line here
Loop
End Function