how to save a boolean numpy array to textfile in python?
Thats correct, bools are integers, so you can always go between the two. 


import numpy as np
arr = np.array([True, True, False, False])
np.savetxt("test.txt", arr, fmt="%5i")


That gives a file with 1 1 0 0
The following saves floating values of a matrix into textfiles
numpy.savetxt('bool',mat,fmt='%f',delimiter=',')
How to save a boolean matrix ? what is the fmt for saving boolean matrix ?