Use sys.io.File.write to create a FileOutput.
sys.io.File.write
FileOutput
close():Void
seek(p:Int, pos:FileSeek):Void
tell():Int
writeByte(b:Int):Void
writeBytes(s:Bytes, pos:Int, len:Int):Int