MgErr FMSeek(fd, ofst, mode);
Sets the current position mark for a file to the specified point, relative to the beginning of the file, the current position in the file, or the end of the file. If the point you specify is past the end of the file, the position mark is set to the end of the file. If the point you specify is before the beginning of the file, the position mark is set to the beginning of the file. If an error occurs, the current position mark does not move.
Name | Type | Description |
---|---|---|
fd | File | File descriptor associated with the file. |
ofst | int32 | New position of the current position mark. The position is the number of bytes from the beginning of the file, the current position mark, or the end of the file, as determined by mode. |
mode | int32 | Position in the file relative to which FMSeek sets the current position mark for a file, using the following values:
|
MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.
Value | Corresponding Error Code or Description |
---|---|
noErr | No error. |
mgArgErr | 1 |
fEOF | 4 |
fIOErr | 6 |