![]() ![]() | ![]() |
1.1 snw 1: %ZWRIMP ;ZWR IMPORTER 2: N PTH,FIL,I,LN,CT,CD S (PTH,FIL,LN,CD)="",CT=0 3: W "PATH? " R PTH W ! 4: W "FILE? " R FIL W ! 5: S ^$J($J,"IOPATH")=PTH 6: O 1:FIL_"/r" 7: F U 1 R LN U 0 Q:^$DEVICE(1,"EOF") D 8: . S CT++ W LN,! 9: . I CT<3 W LN,! 10: . I CT>2 S CD="S "_LN X CD 11: C 1 12: W "READ "_CT-2_" RECORDS." 13: Q