How do I import a text file with no separators in python, using numpy?
Question: How do I import a file with no separators?

I have a file named `text.txt` which contains 2 lines of text:

> 00000000011100000000000000000000  
>  00000000011111110000000000000000

When I use

> f = open("text.txt")  
>  data = np.loadtxt(f)

I get

> [ 1.11000000e+22 1.11111100e+22]

Using `sep=""` changes nothing.

I would like to get this result, in the form of many single digit integers:

> [ [00000000011100000000000000000000]  
>  [00000000011111110000000000000000] ]

Any help is appreciated.

**UPDATE:** Thank you all for the great answers and the many valid solutions
to an awkward question.


Answer: I'll take the statement "I would like to get this result, in the form of many
single digit integers:" literally, and ignore the format of the sample that
follows it (which appears to be just two integers, rather than many single
digit integers). You can do that with
[`genfromtxt`](http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html)
by using the arguments `delimiter=1` and `dtype=int`. When `delimiter` is an
integer or a sequence of integers, the values are interpreted as the field
widths of a file containing fixed-width fields of data.

For example:

    
    
    In [15]: genfromtxt('text.txt', delimiter=1, dtype=int)
    Out[15]: 
    array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
            0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
           [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
            0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
    

