File:write
EditWrites data to the file.
Arguments
| Name | Type | Default | Description |
| string | string | A string to write to the file. | |
| size | number | nil | The number of bytes to write, or nil to write all of the data from the string/Blob. |
Returns
| Name | Type | Description |
| success | boolean | Whether the data was successfully written. |
| message | string | The error message. |
Arguments
| Name | Type | Default | Description |
| blob | Blob | The Blob containing data to write to the file. | |
| size | number | nil | The number of bytes to write, or nil to write all of the data from the string/Blob. |
Returns
| Name | Type | Description |
| success | boolean | Whether the data was successfully written. |
| message | string | The error message. |
Notes
The maximum number of bytes that can be written at a time is 2^53 - 1.
Use File:seek to control where the data is written.