QP_fopen()

Synopsis

     #include <quintus/quintus.h>
     
     QP_stream *QP_fopen(filename, type)
     unsigned char *filename;
     char          *type;
     

Opens the file named by filename and associates a stream with it.

QP_fopen() is similar to the library function fopen(3V), however the return values differ and stream is a Prolog stream rather than a stdio stream.

Return Value


QP_SUCCESS
If function succeeds
QP_ERROR
Otherwise

See Also

QP_fopen(), QP_fdopen(), QP_prepare_stream/[3,4] fli-ios