files_multiple_test, a Fortran77 code which calls files_multiple(), which demonstrates how a program can open multiple output files at one time, and write data to any one specific file it chooses.
The information on this web page is distributed under the MIT license.
files_multiple_test is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version.
files_multiple, a Fortran77 code which demonstrates how a program can open multiple output files at one time, and write data to any one specific file it chooses.
test01() counts from 0 to 100. Each divisor of 2 is written to "divisor1.txt", each divisor of 3 is written to "divisor2.txt" and so on.
test02() watches a vector X, of length 100, as it changes 20 times.