Do you mean instead of reading character by character read it lines at a time? so for example I would set char *myarray = new char[4096]?