Reads the arbitrary data from the specified file within the command context object.
Returns a smart pointer to the data object.