An instance of this class is returned by npufs.open() and provides access to the open file.
Read num_bytes bytes from the file. If no argument is provided, the file is read until the end. A byte object or string (depending on the mode the file was opened with) is returned. For available modes see npufs.open().
The given data is written to the file. The data can be a byte object, string, or general buffer object, such as an ExternalBuffer.
Note:
If the SD Card is write protected, the procedure to write to SD Card results in a runtime error.
Closes the file. The NpufsFile should not be used after this call. It is called automatically when leaving a managed context.