How to read a file from file for Table Driven Pattern?