home *** CD-ROM | disk | FTP | other *** search
- start:
- cls
-
- e$=chr$(27)
- a$=command$
- b$=mid$(a$,2,79)
- open "i",1,b$
-
- if error=2 then
- print "File not found."
- goto finish:
- endif
-
- if error=3 then
- print "Path not found."
- goto finish:
- endif
-
- continue:
- input# 1, line$ crlf
-
- if error=96 then
- print line$
- line=line+1
-
- if line=23 then
- gosub wait:
- if a$=e$ then finish:
- line=0
- cls
- endif
- gosub blanklin:
- endif
-
- line=line+1
-
- if line=23 then
- print ""
- gosub wait:
- if a$=e$ then finish:
- line=0
- cls
- endif
-
- c$=chr$(32)
-
- d$=inkey$
- if d$=c$ then
- gosub wait:
- else
- if d$=e$ then finish:
- endif
-
- print line$
-
- if error=99 then
- gosub wait:
- print
- print
- color 15,0
- print "End of File."
- print line$
- goto finish:
- endif
-
- goto continue:
-
- wait:
- print "Press any key to continue. ";
- waitmore:
- a$=inkey$
- if a$="" then waitmore:
- return
-
- blanklin:
- input#1, line$ crlf
- if line$="" then continue:
- return
-
- finish:
- close 1
- end
-