# fsIOGetLastError The **fsIOGetLastError** function is used to retrieve the last error that a file has triggered as part of the read/write operations.   ##### Syntax ``` wasm FsIOErr fsIOGetLastError( FsIOFile file ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|---------------------------------------------------------------------| | `file` | This is the ID of a file, as returned by one of the open functions. | {{< /table-wrapper >}}   ##### Return Values The function returns one of the `FsIOErr` codes.   ##### Remarks N/A