now able to read a file character by character