Added a temp array to store data, read chars