print matrix to file.