Additionally, the module uio_var_module makes it possible to read any
entry into an UIO flexible variable,
and the module uio_varfile_module allows the reading of a complete file
into a special file structure of UIO flexible variables.

To close a file after reading use

uio_closrd(ncin)

There are several examples of programs with UIO routines like
uio_var_test.f90,
uio_varfile_test.f90,
uiotst.f90,
(uio_demo.f90) and - of course - CO5BOLD.