I have a very big file 4GB and when I try to read it my computer hangs. So I want to read it piece by piece and after processing each piece store the processed piece into an
i am not allowed to comment due to my low reputation, but SilentGhosts solution should be much easier with file.readlines([sizehint])
python file methods
edit: SilentGhost is right, but this should be better than:
s = "" for i in xrange(100): s += file.next()