FNewRefNum (LabVIEW Manager Function)
- Updated2025-01-28
- 1 minute(s) read
FNewRefNum (LabVIEW Manager Function)
MgErr FNewRefNum(path, fd, refNumPtr);
Purpose
Creates a new file refnum for an open file with the name and location specified by path and the file descriptor fd.
If the file refnum is created, the resulting file refnum is stored in the address referred to by refNumPtr. If an error occurs, NULL is stored in the address referred to by refNumPtr and the error is returned.
Parameters
Name | Type | Description |
---|---|---|
path | Path | Path of the open file for which you want to create a file refnum. |
fd | File | File descriptor of the open file for which you want to create a file refnum. |
refNumPtr | LVRefNum * | Address at which FNewRefNum stores the new file refnum. This parameter is a pointer. |
Return Value
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 |
mFullErr | 2 |