I am facing a problem while loading large .txt File into a string variable.
I'm getting a run-time error "62" (Input Past End Of File) every time I do

The code I had used is as follows.

dim mystring as string

FileNum = FreeFile
Open For Input As #FileNum
If Not EOF(FileFNum) Then
mystring = Input$(LOF(FileNum), FileNum)
End If

Does anybody know the solution to this one?