Reset Password
Check your e-mail for further instructions.
Reset
Name
file_pwrite
Auth
yes
Description
Writes as much data as you send to the file descriptor fd. Data is written at the offset that is provided as parameter.
file_pwrite ignores the O_APPEND flag. The file's offset is not changed.
You can see how to send data here.
Output
Returns bytes (number of bytes) written.
Required
Parameter | Description |
fd | int the file descriptor, to which data is written |
offset | int the offset in bytes, from where the data is written |
Example
{ result: 0, bytes: 124 }
Errors
Code | Description |
1000 | Log in required. |
1007 | Invalid or closed file descriptor. |
1009 | Please provide 'offset'. |
2000 | Log in failed. |
2003 | Access denied. You do not have permissions to preform this operation. |
2008 | User is over quota. |
4000 | Too many login tries from this IP address. |
5003 | Write error. Try reopening the file. |