Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Past end of file error when not

Status
Not open for further replies.

DaProgrammer

Programmer
May 27, 2004
22
US
Dear all:
For a weather program i am making, I have to input data from clientraw.txt (if you want to see the file goto into sequential variables a to z, then aa to zz, then aaa to zzz, and so on. Here is my code that when I put anymore variables than this it gives me an Input Past End Of File Error:
Code:
Open "A:\clientraw.txt" For Input As #1
Do While Not EOF(1)
Dim hh
    Input #1, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, hh, ii, z, aa, bb, cc, dd, ee, ff, gg
Loop
Close #1

I simply do not understand where my problem is. Is there an alternative method to inputing this data, each into seperate variables?

-Thanks Much in Advance,
Eric A. Hill

***NOTE, PLEASE IGNORE THE WORD WRAP!***
 
There can't be many pro shops still running VB4. Sorry, but I can't remember all the old errors, and I don't have VB4 installed any longer.

Suggest you get the boss to upgrade your VB!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Try changing:

Dim aryInput() As String

to

Dim aryInput() As Variant

Swi
 
If none of the above solutions work you may want to try forum221 if you haven't already.

This is the VB 3 and 4 forum.

Swi
 
As posted from earlier:
DaProgrammer (Programmer) Jul 28, 2004
Negative, using VB 4.0 with updated service packs. I am trying this forum b/c there was no reply in the vb 4 forum. Also, alot of the VB5 and 4 are very closely related.

-Eric


Thanks anyway though :-(

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top