minor additions to readFile,c for prog6