|Download Help (Windows Only)|
Owning Class: support
Requires: MathScript RT Module
fid = fopen('all')
fid = fopen(filename)
fid = fopen(filename, mode)
Opens a file.
|'all'||Returns the specifiers for all open files.|
|filename||Specifies the path to the file you want to open. If filename is a relative path, LabVIEW searches for the file in the current directory. filename is a string.|
|mode||Specifies how to open the file. mode is a string that accepts the following values.
|fid||Returns an identifier for the file you opened. You can use fid to specify the file you want to use with the fread or fwrite functions. fid is an integer. If you specify fopen('all'), fid returns the identifiers for all open files as a vector of integers.|
If you use this function in a stand-alone application or shared library and filename is a relative path, LabVIEW searches for the file in the path where you installed the application or shared library. (Real-Time Module) If you deploy this function to an RT target and filename is a relative path, LabVIEW searches for the file in the path returned by the Default Data Directory VI.
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||No (affects entire script)|
fid = fopen('Test.m');