why not use a stream directly?
Local a:Int[16,16] Local stream:TStream = WriteStream( "array.data") stream.WriteBytes( a, SizeOf(a)) stream.Close()