NO FRAMES

CPXfopen

CPXFILEptr CPXPUBLIC CPXfopen(const char * filename_str, const char * type_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXfopen is used to open files to be used in conjunction with the routines CPXaddfpdest,CPXdelfpdest and CPXsetlogfile. It has the same arguments as the standard C library function fopen.

Example

 fp = CPXfopen ("mylog.log", "w");
 

See also lpex5.c in the ILOG CPLEX User's Manual.

Parameters:

filename_str

A pointer to a character string that contains the name of the file to be opened.

type_str

A pointer to a character string, containing characters according to the syntax of the standard C function fopen.

Returns:

The routine returns a pointer to an object representing an open file, or NULL if the file could not be opened. A CPXFILEptr is analogous to FILE *type in C language.