home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / scrmod.zip / SETEOF < prev    next >
Text File  |  1991-08-21  |  397b  |  19 lines

  1. > watch(off)
  2. > openold('\config.sys',handle)
  3. > text1 = readline(handle)
  4. > result = seteof(handle)
  5. > text2 = readline(handle)
  6. > close(handle)
  7. > message('seteof result = ' + valtostr(result))
  8. > message('Read before seteof = ' + text1)
  9. > message('Read  after seteof = ' + text2)
  10. > message('Press any key to terminate script')
  11. > watch(on)
  12. > timeout = 0
  13. > watch(on)
  14. > wait()
  15. > end
  16.  
  17.  
  18.  
  19.