Dim strPath As String
Dim intFileNum As Integer
Dim strTemp As String
Dim strResult As String
strPath = "D:\aaa.txt"
If Dir(strPath) <> "" Then
intFileNum = FreeFile
Open strPath For Input As #intFileNum
While Not EOF(intFileNum)
Line Input #intFileNum, strTemp
strResult = strResult + strTemp + vbCrLf
Wend
Close #intFileNum
End If