Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

fclose (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

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


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit