Read file line by line

I used the excellent genfromtxt function to test.
But on real data, my file is very large and a memory error occurs.
How can I read a file line by line into an array, so that I can use the [;] section?

0;1;0;1;7;5;5;5.75;7;5;5;2.75;7;5;5;5.25;0;0;4;3;0;0;3;0;0;0;0;0;0;0;2;9

0;1;0;1;7;5;5;5.50;7;5;5;2.75;7;5;5;3.75;0;0;4;0;0;0;0;2;0;0;2;5;0;0;2;0
...

What do you mean by [;] section?
If you want to read the file in chunks, you could probably use this method.
Alternatively, you could use pd.read_csv with the chunksize argument.