sorry my fault, not tested
Open "C:\Mach3\Lasterrors.txt" For Input As #2 ' Open to read file.
Do While Not EOF(2)
Line Input #2, FileData ' Read a line of data.
LineN_1 = LineN
LineN = FileData
Loop
Close #2
SetUserLabel(151,LineN_1)
SetUserLabel(150,LineN)