Synopsis
int OMopen_file(
OMobj_id object_id,
const char *user_file,
0)
Description
OMopen_file loads either an ascii or binary V file specified from user_file into object_id
Arguments
object_id
Specifies the object that is used as the parent of objects defined in user_file.
user_file
Specifies the name of an ascii or binary V file. If user_file does not have a suffix, this routine first tries to append a .v suffix onto the filename and open an ascii V file of this name. If that file does not exist, it appends a .vo suffix and tries to open a binary V file with that name.
If either the file was originally specified with a suffix or if neither .v or .vo files exist, this routine identifies the file as either binary V or ascii V by looking at the contents and loads the file.
The file specified can be an absolute pathname or relative to v subdirectory of any project in your XP_PATH or relative to the current directory in which your process was started.
0
The third argument specifies the mode in which to load the file. The only supported value is 0.
Return value
The status code
See also