"Error 62 - input past end of file" is a MS Windows problem that rarely happens but the only remedy is to restart the program. A snippet from the source illustrates it below. A little file is written out and read back in. Somehow the o/s can't always find it. 'A little Fortran-style formatting Open FileNameS + "cp.txt" For Output As 1 Print #1, c1$ Print #1, c1$ 'stupid MS bug Close 1 '16,255,99999,99999 = 18 max mM 1 '1,0,0,0,0,0,0,10000 = 19 min mM 2 If Len(c1$) > 18 Then sw1 = 1 If sw1 = 0 Then Label3 = "mMI" If sw1 = 1 Then Label3 = "mMII" Open FileNameS + "cp.txt" For Input As 1 If sw1 = 0 Then Input #1, a, b, c, d If sw1 = 1 Then Input #1, a, b, c, d, e, f, g, h Close 1 'fix stupid MS bug - "a" comes in empty almost every time in a set of 16 If sw1 = 1 And h < 10000 Then a = b: b = c: c = d: d = e: e = f: f = g: g = h: h = 11111 End If Incident ID SRZ040816002359 Incident Title: (Microsoft Support) Visual Studio 6.0 Pro-Other: I wrote a program for clients that sometimes giv... Problem Description: I wrote a program for clients that sometimes gives them trouble. The below code should work but sometimes doesn't. Is there a better way to do this? I simply want to parse a string of 4 (or 8) comma separated numbers and get them into separate scalar variables. c1$ comes from a machine attached to com port. It looks like one of the 2 commented examples. I use length to distinguish between 2 types of machines. Product: Visual Studio 6.0 Pro Sent: 8/16/2004 5:06:36 PM Last Modified: 8/16/2004 5:06:36 PM Status: No Response