in reply to splitting arrays

Instead of trying to read the file a line at a time when you do not have any line terminators try using read to get only 50 bytes at a time (not bits).