read_gasexchange function

Read gas-exchange data from a text file.