which accepts string types, ubyte[], individual character types, and individual ubytes.
File.lockingTextWriter
auto lockingTextWriter() @safeOutput range which locks the file when created, and unlocks the file when it goes out of scope.
Returns
An output range
Note
Writing either arrays of
chars or ubytes is faster than
writing each character individually from a range. For large amounts of data, writing the contents in chunks using an intermediary array can result in a speed increase.
Throws
See Also
byChunk for an example.