io.yab

来自「Linux下VB解释器」· YAB 代码 · 共 34 行

YAB
34
字号
#!./yabasica=open("tests/io.yab","r")while(!eof(a))   line input #a a$   l=l+1wendclose aif (l<5) exit 1if (!open(1,"tests/io.yab")) exit 1while(!eof(1))  input #1 a$wendclose 1rem bug from 2.700a$ = dummy$(add$)print a$;rem bug from 2.714 (must be last test)if (!open(1,"nonexistent.yab")) exit 0exit 1endsub dummy$(add$)	f = open ("tests/out.dat", "w")	print #f "tmp"	close #f	return ""end sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?