If you read each line into a String, the String class has methods to get each character in the String.