csv_reader now internally holds pointers for output and error handler and input stream.