A class to read numbers and characters from txt