seektst.f
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· F 代码 · 共 17 行
F
17 行
character*20 word1, word2 integer ftell, fseek open(1, file="/usr/dict/words") iend = ftell(1) iseek1 = fseek(1, iend/2, 0) read(1,'(a)') word1 iword = ftell(1) read(1,'(a)') word1 rewind 1 ibeg = ftell(1) iseek2 = fseek(1, iword, 0) read(1,'(a)') word2 write(*,*) ibeg, iword, ftell(1), iend write(*,*) word1(:lnblnk(word1)), word2(:lnblnk(word2)) write(*,*) "seek status", iseek1, iseek2, fseek(1, -1, 0) end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?