add functions for reading contents from an ASCII file