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.
Dim sName As String
Dim sInits As String
Dim sPhone As String
Dim sSSN As String
Suppose File1.dat contains this:
Bill A. Smith, BAS, 555-1212, 123-12-1234
Jody W. Harris, JWH, 555-2121, 312-21-4321
etc.
'Read Each Record
Open "File1.dat" For Input As #1 'Note - use complete path
Do While Not EOF(1)
Input #1, sName, sInits, sPhone, sSSN
'Looking for JWH
If sInits Like "JWH" Then
Exit Do
End If
Loop
Close#1
Suppose File2.dat contains this:
Bill A. Smith
Jody W. Harris
etc.
'Read Each Record
Open "File2.dat" For Input As #1 'Note - use complete path
Do While Not EOF(1)
Input #1, sName
MsgBox "Current Name: " & sName
Loop
Close#1
Suppose File3.dat contains this:
This is a single line of text, used for testing.
This line contains more text, again, just as a sample.
etc.
'Read Each Line - Not Comma Delimited
Dim sLine As String
Open "File3.dat" For Input As #1 'Note - use complete path
Do While Not EOF(1)
Line Input #1, sLine
MsgBox "Current Line: " & sLine
Loop
Close#1
[code]
Hope these samples help...