This object represents a NetPad ideas file and can be used to read, create and modify ideas.
Method: openRead
Opens a NetPad file for read-only access.
bool openRead();
Opens a NetPad file whose name has already been specified.
bool openRead(filePath);
Opens a NetPad file with the given name.
Parameters | ||
---|---|---|
Name | Expected Type | Description |
filePath | String | The full path name to the NetPad file, which must already exist. |
If the return value from this method is used, it will return true for success, or false if any error occurred. If the return value is not assigned, an exception will be generated on any error.
It is not necessary to explicitly open a NetPad file unless you want to restrict it to read-only access. If you do not call openRead or openReadWrite, the file will be automatically opened for read/write access when used.
Method: openReadWrite
Opens a NetPad file for read/write access.
bool openReadWrite();
Opens a NetPad file whose name has already been specified.
bool openReadWrite(filePath);
Opens a NetPad file with the given name.
Parameters | ||
---|---|---|
Name | Expected Type | Description |
filePath | String | The full path name to the NetPad file, which must already exist. |
If the return value from this method is used, it will return true for success, or false if any error occurred. If the return value is not assigned, an exception will be generated on any error.
It is not necessary to explicitly open a NetPad file unless you want to restrict it to read-only access. If you do not call openRead or openReadWrite, the file will be automatically opened for read/write access when used.