next up previous contents index
Next: Function param_read_args Up: Module paramreader_module Previous: Function param_read_line   Contents   Index

Function param_read_file


\begin{boxedminipage}{\textwidth}
\begin{verbatim}status = param_read_file(dict,file[,do_check])\end{verbatim}
\end{boxedminipage}

Read lines from Inoutput object file, in format key = value and set entries in the Dictionary dict. Skips lines starting with a #. If do_check is true then finish by checking if all mandatory values have been specified. Returns false if there was a problem reading the file, or if the check for mandatory parameters fails.

dict -- type(Dictionary), intent(inout)

Dictionary of registered key/value pairs

file -- type(Inoutput), intent(in)

File to read from

do_check -- logical, intent(in), optional

Should we check if all mandatory parameters have been given

Return value -- logical

param_read_args function

gabor 2009-06-30