ILOG CPLEX 11.0 Getting Started > Tutorials > Interactive Optimizer Tutorial > Reading Problem Files > Reading LP Files

At the CPLEX> prompt type:

read 

The following message appears requesting a file name:

Name of file to read:

Four files have been saved at this point in this tutorial:

example
example2
example.lp
example.bas

Specify the file named example that you saved while practicing the write command.

You recall that the example problem was saved in LP format, so in response to the file type prompt, enter:

lp

ILOG CPLEX displays a confirmation message, like this:

Problem 'example' read.
Read Time =   0.03 sec.

The example problem is now in memory, and you can manipulate it with ILOG CPLEX commands.

Tip
The intermediate prompts for the read command can be avoided by entering the entire command on one line, like this:
read example lp