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

Chapter 7 File Manager Functions

Error

Description

mgArgErr

Not a valid file descriptor.

fIOErr

Unspecified I/O error occurred.

 

 

Positioning the End-Of-File Mark

FGetEOF

syntax

MgErr

FGetEOF(fd, sizep);

 

FGetEOF returns the size of the specified file.

 

Parameter

 

Type

Description

 

fd

 

File

File descriptor associated with the file.

 

sizep

 

int32 *

Address at which FGetEOF stores the size of the

 

 

 

 

file in bytes. If an error occurs, the contents of

 

 

 

 

*sizep 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.

 

Error

 

Description

 

 

mgArgErr

 

Not a valid file descriptor.

 

fIOErr

 

Unspecified I/O error occurred.

 

 

 

 

 

FSetEOF

syntax

MgErr

FSetEOF(fd, size);

FSetEOF sets the size of the specified file. If an error occurs, the file size does not

change.

 

 

Parameter

Type

Description

fd

File

File descriptor associated with the file.

size

int32

New file size in bytes.

returns

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

LabVIEW Code Interface Reference Manual

7-12

National Instruments Corporation

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