Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

fclose (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

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.

Examples

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

Related Topics

fopen
fread
fseek
fwrite


Resources


 

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