|
-
Feb 17th, 2000, 08:58 PM
#1
Thread Starter
Hyperactive Member
I use the following code to open a file into my richtextbox:
Private Sub cmdopen_Click()
Dim filelength
Open "C:\windows\desktop\document1.txt" For Input As #1
filelength = LOF(1)
var1 = Input(filelength, #1)
Form1.RichTextBox1.Text = var1
Close #1
End Sub
This works fine for small text files. However, the file I want to open is 142k. I keep getting the error: Run time error '62'
Input past end of file.
Is there anyway I can resolve this?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|