NumPy

numpy.ma.MaskType.tofile

method

MaskType.tofile()

Scalar method identical to the corresponding array attribute.

Please see ndarray.tofile.