fclose (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: support

Requires: MathScript RT Module

Syntax

status = fclose('all')

status = fclose(fid)

Description

Closes a file.

Details

Examples

Inputs

Name Description
'all' Closes all open files in the current directory.
fid Specifies the identifier for the file you want to close. Use the fopen function to open a file and assign it an identifier. fid is an integer.

Outputs

Name Description
status Returns 0 if LabVIEW closes the file successfully. Otherwise, this function returns -1. status is an integer.

Details

If you include this function in a stand-alone application or shared library, 'all' directs LabVIEW to close all open files in the directory where you installed the application or shared library.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

fid = fopen('Test.m');
fclose(fid);

Related Topics

fopen
fread
fseek
fwrite

文章是否对您有帮助?

没有帮助