A suite of functions to flexibly read data from files