ILOG CPLEX 11.0 File Formats > > ILOG CPLEX File Formats > CSV File Format: Comma Separated Values

ILOG CPLEX supports the file format known as CSV through XML facilities in Concert Technology. CSV is a file format consisting of lines of comma-separated values in ordinary ASCII text. Concert Technology provides classes adapted to reading data into your application from a CSV file. The constructors and methods of these classes are documented more fully in the ILOG CPLEX C++ API Reference Manual as the group optim.concert.extensions.

IloCsvReader

An object of this class is capable of reading data from a CSV file and passing the data to your application. There are methods in this class for recognizing the first line of the file as a header, for indicating whether or not to cache the data, for counting columns, for counting lines, for accessing lines by number or by name, for designating special characters, for indicating separators, and so forth.

IloCsvLine

An object of this class represents a line of a CSV file. The constructors and methods of this class enable you to designate special characters, such as a decimal point, separator, line ending, and so forth.

IloCsvReader::Iterator

An object of this embedded class is an iterator capable of accessing data in a CSV file line by line. This iterator is useful, for example, in programming loops of your application, such as while-statements.