Owning Class: support
Requires: MathScript RT Module
fid = fopen('all')
fid = fopen(filename)
fid = fopen(filename, mode)
Opens a file.
| Name | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '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.
|
| Name | Description |
|---|---|
| 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. If filename is an absolute path, LabVIEW searches for the file on the local machine or target at the specified location. (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.
fid = fopen('Test.m');
fclose(fid);