write multimethod

Methods

write(s:Str, fd:Int)deprecated Source: stdlib.ngs:4387
DEPRECATED! Do not use!
write(fd:Int, s:Str) Source: stdlib.ngs:4397
Write data to a file referenced by file descriptor. WARNING: Incomplete implementation. TODO: handle errors, throw exceptions. TODO: handle possible EINTR.

Parameters

fdFile descriptor to write to

Returns

unspecified at this time, do not count on it
write(s:Str, p:Pipe)deprecated Source: stdlib.ngs:4478
DEPRECATED! Do not use!
write(p:Pipe, s:Str) Source: stdlib.ngs:4484
Write to Pipe. TODO: document if it throws.

Returns

unspecified at this time, do not count on it
write(pp:ProcessesPipeline, s:Str) Source: stdlib.ngs:5198
Write to first process of ProcessesPipeline

Example

p = (|cat -n | tac >/tmp/1)
p.write("one\n")
p.write("two\n")
p.close()
write(fname:Str, s:Str) Source: stdlib.ngs:6502
Write whole file
write(s:Str, f:File) Source: stdlib.ngs:6514
Write whole file if it's closed, write to file descriptor if it's open
write(f:File, s:Str) Source: stdlib.ngs:6519
Undocumented
write(t:Terminal, s:Str) Source: autoload/Terminal.ngs:42
Undocumented