home *** CD-ROM | disk | FTP | other *** search
-
- Private Sub ReadFile()
-
- Dim intFileNum As Integer
- Dim strLineIn As String
-
- ' Re-read the current INI file and display it
- ' in the list box lstFileContents.
- lstFileContents.Clear
- If Dir$(dlgGetFilename.FileName) <> "" Then
- intFileNum = FreeFile
- Open dlgGetFilename.FileName For Input As #intFileNum
- While Not EOF(1)
- Line Input #intFileNum, strLineIn
- lstFileContents.AddItem strLineIn
- Wend
- Close #intFileNum
- End If
-
- End Sub
-