OEReadCSVHeader

bool OEReadCSVHeader(oemolistream &ifs,
                     OECSVHeader &header,
                     unsigned int flavor = OEIFlavor::CSV::DEFAULT)

Attempt to read the first line of the file opened by ifs into a OECSVHeader object. This initializes the OECSVHeader object with column names described by that line. If OEIFlavor::CSV::Header is not specified in the flavor argument or the first column of the first line is interpretable as SMILES, then the column names will be initialized to the following pattern based upon the number of columns found in the first line: SMILES, TITLE, OE_CSV_COLUMN_1, OE_CSV_COLUMN_2, …, OE_CSV_COLUMN_N.

See also

CSV File Format