fseek
移至文件中的指定位置
Syntax
fseek(fileID, offset, origin)
状态= fseek(___)
Description
Examples
Input Arguments
Tips
If a file has
n
bytes of data, then thosen
bytes are in positions0
throughn-1
。
Alternatives
To move to the beginning of a file, call
frewind(fileID)
This call is identical to
fseek(fileID, 0, 'bof')
Extended Capabilities
Introduced before R2006a
Was this topic helpful?