I have a file with text with only 0's and 1's. No space between them. Example:
I would like to read a character at a time and place them as a single element in a list of integers.
intlist = 
with open('arq.txt', 'r') as handle:
for line in handle:
if not line.strip():
values = map(int, line.split())
Like if I transform the 0101110 in intlist = [0,1,0,1,1,1,0,1,1,1,0,1,1,1]. (without '\n')