MgErr FMOpen(fdp, path, openMode, denyMode);
Opens a file with the name and location specified by path for writing and reading, as specified by openMode.
You can use denyMode to control concurrent access to the file from within LabVIEW.
If the function opens the file, the resulting file descriptor is stored in the address referred to by fdp. If an error occurs, the function stores 0 in the address referred to by fdp and returns an error.
Note Before you call this function, ensure that you understand how to use pointers as parameters. |
Name | Type | Description |
---|---|---|
fdp | File * | Address at which FMOpen stores the file descriptor for the new file. If FMOpen fails, it stores 0 in the address fdp. This parameter is a pointer. |
path | Path | Path of the file you want to create. |
openMode | int32 | Access mode to use in opening the file. The following values are defined in the file extcode.h.
|
denyMode | int32 | Mode that determines what level of concurrent access to the file is allowed. The following values are defined in the file extcode.h.
|
MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.
Value | Corresponding Error Code or Description |
---|---|
noErr | No error. |
mgArgErr | 1 |
fIsOpen | 5. This error is returned only on Mac OS X. Windows returns fIOErr. |
fIOErr | 6 |
fNotFound | 7 |
fTMFOpen | 11 |