Use sys.io.File.write to create a FileOutput.
sys.io.File.write
FileOutput
writeFullBytes(s:Bytes, pos:Int, len:Int):Void
Write len bytes from s starting by position specified by pos.
len
s
pos
Unlike writeBytes, this method tries to write the exact len amount of bytes.
writeBytes
@:has_untypedwriteString(s:String, ?encoding:Encoding):Void
Write s string.