回 帖 发 新 帖 刷新版面

主题:小菜12~!什么是lof啊?

引用:
open "A.txt" for binary as #1
open "B.txt" for binary as #2
if lof(1)=lof(2) then
  same=-1
  do until eof(1)
     a$=input$(16383,#1)
     b$=input$(16383,#2)
     if a$<>b$ then
        same=0
        exit do
     endif
  loop
endif
close #1,#2
if same then shell "A.EXE" else shell "B.EXE"

以上引用的版权归老moz所有。

LOF有什么用呢?
INPUT$(16383,#2)又有什么用呢?

回复列表 (共3个回复)

沙发

LOF is "Len of file" 文件长度
filelen = LOF(n)                 n 为打开的文件号
tempstr$ = INPUT$(lenofbyte,n)   lenofbyte为从文件读取的字节数

(2)INPUT$函数
  格式:INPUT$(n[,[#]文件号])
  功能:返回从键盘或指定文件中读出n个字符的字符串

  PRINT "Press any key to continue..."
  wait$ = INPUT$(1)

板凳

怎么没注明引用老moz的版权呢?

3 楼

不好意思,现在就改~!

我来回复

您尚未登录,请登录后再回复。点此登录或注册