Open the file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_file), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | filename |
the name of the JSON file |
subroutine open_config_file(me, filename) class(config_file),intent(inout) :: me character(len=*),intent(in) :: filename !! the name of the JSON file call me%json%load(filename=filename) if (me%json%failed()) error stop 'error reading json file '//trim(filename) end subroutine open_config_file