use for line in lines instead of readline() and get rid of fileLen function