home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / IOFUN.DI$ / FSEEK.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  853 b   |  30 lines

  1. %FSEEK    Change the position indicator in a file.
  2. %    STATUS = FSEEK(FID, OFFSET, ORIGIN) repositions the file position
  3. %    indicator in the specified file to the specified byte offset with
  4. %    respect to the specified origin. 
  5. %
  6. %    FID is an integer file identifier obtained from FOPEN.
  7. %
  8. %    OFFSET values are interpreted as follows:
  9. %        > 0    Move toward the end of the file.
  10. %        = 0    Do not change position.
  11. %        < 0    Move toward the beginning of the file.
  12. %
  13. %    ORIGIN values are interpreted as follows:
  14. %        'bof' or -1   Beginning of file
  15. %        'cof' or  0   Current position in file
  16. %        'eof' or  1   End of file
  17. %
  18. %    STATUS is 0 on success and -1 on failure.
  19. %
  20. %    Example:
  21. %
  22. %        fseek(fid,0,-1)
  23. %
  24. %    "rewinds" the file.
  25. %
  26. %    See also FOPEN, FTELL.
  27.  
  28. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  29. %    Built-in function.
  30.