Added support for reading a CSV file into a resource