INPUT "Which category: ",cat
fp=-1: ! Set filepointer for "first search"
$loop: FILENEXT 3,cat,fp: ! Get pointer to next record
IF fp=-1 GOTO ready:! No further record
FILEREAD 3,cat,fp: ! Read memo to FILEBUFFER
FOR i=0 TO 20: ! First 21 characters
IF FILEBUFFER[i]=13 GOTO next
! End Of Line?
PRINT CHR$(FILEBUFFER[i]);
! Print character
NEXT
$next: PRINT: ! New Line
GOTO loop
$ready: PRINT "Ready" |