The following code prepends the directory path to the full path resulting in wrong paths if the data is not in the current directory, i.e. the norm_parser.data_file_name doesn't do what's expected.
|
char directory_name[max_filename_length]; |
|
get_directory_name(directory_name, filename.c_str()); |
|
char full_data_file_name[max_filename_length]; |
|
strcpy(full_data_file_name, norm_parser.data_file_name.c_str()); |
|
prepend_directory_name(full_data_file_name, directory_name); |