Writes the string to the stream.
| this |
a Stream object |
| string |
a string |
| cancellable |
optional Cancellable object, or null |
|
the number of characters written or -1 on error. |