Something about prgedit and prgget$: PRGEDIT specifie a program and line to edit. The problem is that it start from line 0 and iterate until it reach the desired line. PRGGET$ read the current line and it move the pointer to the next line. If the file you're reading is too big, then you should remove prgedit from the "for" because the performance won't be good.