mustBeFile(var)
mustBeFile(var, argPosition)
C++: void mustBeFile(const ArrayOfVector& args, int argPosition)
| Parameter | Description |
|---|---|
| var | a variable: a scalar string array or row vector characters array. |
| argPosition | a positive integer value: Position of input argument. |
mustBeFile checks that input path refers to file or raise an error.
mustBeFile(tempdir())
mustBeFile([nelsonroot(), '/etc/startup.m'])
| Version | Description |
|---|---|
| 1.0.0 | initial version |