'easy text file reader + arrows support (Enter ends it)
value$ = ReadFile("0.txt")
PRINT "Returned is: "; value$
'load file to memory
i = 1
i = i + 1
StartPosition = 1
EndPosition = StartPosition + 22
Current = 1
Current = 1
StartPosition = StartPosition + 22
StartPosition = StartPosition - 22
Current = 22
Current = 1
EndPosition = StartPosition + 22
IF EndPosition
> i
THEN EndPosition
= i
IF EndPosition
< 22 THEN EndPosition
= 22
FOR Content
= StartPosition
TO EndPosition
LOCATE Content
- StartPosition
+ 1 IF Current
= Content
- StartPosition
+ 1 THEN COLOR 1, 15 ELSE COLOR 15, 14: cur
= Current
+ StartPosition
- 1 ReadFile = VF(cur)