Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

 

 

Chapter 7 File Manager Functions

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.

 

 

If mode is fStart, the current position mark

 

 

moves to ofst bytes relative to the start of the file

 

 

(ofst must be greater than or equal to 0).

 

 

If mode is fCurrent, the current position mark

 

 

moves ofst bytes from the current position mark

 

 

(ofst can be positive, 0, or negative).

 

 

If mode is fEnd, the current position mark moves

 

 

to ofst bytes from the end of the file (ofst must be

 

 

less than or equal to 0).

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

mgArgErr

Not a valid file descriptor.

 

fEOF

Attempt to seek before the start or after the end of the file.

 

fIOErr

Unspecified I/O error occurred.

 

 

 

FMTell

syntax MgErr FMTell(fd, ofstp);

FMTell returns the position of the current position mark in the file.

Parameter

Type

Description

fd

File

File descriptor associated with the file.

ofstp

int32 *

Address at which FMTell stores the position of the

 

 

current position mark, in terms of bytes relative to

 

 

the beginning of the file. If an error occurs, the

 

 

contents of ofstp is undefined.

 

 

See the Pointers as Parameters section of

 

 

Chapter 1, CIN Overview, for more information

 

 

about using this parameter.

returns

MgErr, which can contain the errors in the following list.

National Instruments Corporation

7-11

LabVIEW Code Interface Reference Manual

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]