Characters & Strings: generating data files on demand |
![]() Tutorials on Fortran by www.giuseppeforte.me is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. |
In this example I introduce the usage of characters and strings. In particular, I discuss how to use character variables to generate new data files on demand (for example within a cycle). Such technique could be extremely useful. Indeed, is practically impossible to define data files by hand, when the number of such data files is huge.
EXAMPLE - III: automatic generation of data - files
In this example:
|
Download the Source code (it is free, just have fun!).
In order to compile and run the source code given in the attached Listing, refer to the instructions in section before starting ![]()
![]()
|