Here follows the descriptions of the functions in /precompiled/file:
| 'r' | open file for reading |
| 'w' | open file for writing |
| 'a' | open file for append (use with 'w') |
| 't' | truncate file at close (use with 'w') |
| 'c' | create file if it doesn't exist (use with 'w') |
| 'x' | fail if file already exist (use with 'c') |
How should _always_ contain at least one of 'r' or 'w'.
Returns 1 on success, 0 otherwise.
If a one is given as second argument to read(), read will not try it's best to read as many bytes as you asked it to read, it will merely try to read as many bytes as the system read function will return. This mainly useful with stream devices which can return exactly one row or packet at a time.
If no arguments are given, the callbacks are not changed. The stream is just set to nonblocking mode.
This function returns 1 for success, 0 otherwise. Note that if the socket is in nonblocking mode, you have to wait for a write or close callback before you know if the connection failed or not.