How to write a multidimensional array to a text file?,outfile.write('# New slice\n')