Upload a file to the brick.
- Parameters:
-
| brick | - Pointer to a brick structure with an open connection. |
| filename | - name of the file on the local computer. |
| flags | - upload mode |
- Author:
- Jason W. Bacon
Upload the specified file (e.g. an executable or sound file) to the brick. The brick must first be opened with
rct_open_brick().
Valid flags:
- RCT_NO_FLAGS
- RCT_OVERWRITE - replace the file if it already exists on the brick. Otherwise, upload file will fail and and return an error code.