Skip to content
Snippets Groups Projects
Commit 292a97fc authored by James Willis's avatar James Willis
Browse files

Write the contents of the parameter structure to a file in YAML format.

parent b65e4002
No related branches found
No related tags found
1 merge request!140First version of main() using a parameter file to get constants.
......@@ -39,9 +39,12 @@ int main(int argc, char *argv[]) {
/* Read the parameter file. */
parser_read_file(input_file,&param_file);
/* Print the contents of the structure. */
/* Print the contents of the structure to stdout. */
parser_print_params(&param_file);
/* Print the contents of the structure to a file in YAML format. */
parser_write_params_to_file(&param_file,"test.yaml");
/* Retrieve parameters and store them in variables defined above.
* Have to specify the name of the parameter as it appears in the
* input file: testParserInput.yaml.*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment