# Synopsis

PDX_MSGT vafp_ParseFile(long option, int model, char *file_name, MDA_ENT_FUNC *func)

# Purpose

Read an ASCII VDAFS file into a model.

# Description

The specified VDAFS file is parsed into a model. The type of VDAFS file will be determined automatically, however, only ASCII files are currently supported. Other file types will cause an error to be returned.

# Input

## option

### VAFP_OVRWRT_OPT

If model contains entities, delete them before parsing the file (i.e. start with a clean model)

## model

Model to place the entities in. The model must already be allocated with mda_AllocateModel.

## file_name

Name of file to be parsed.

## func

Function to be called with each entity after it is parsed or NULL if no function should be called. See mda_ParseFile for more information.

# Return

VAFP error code, if not VAFP_NOERR, mpm_DumpStack can be called to print the specifics of the error.