Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

Trick for creating a large text file with known, fixed content?

$
0
0

Maybe there is a trick I am not aware of...

Assume I need my code to write a text file which content is fixed (say, a template file, or a mini help file) and which will not be modified by the code execution. The obvious solution is to create a subroutine with as many WRITE statements as there are lines of content to be produced. This becomes quickly cumbersome for larger files. Is there a workaround for this?

Thanks,

Olivier


Viewing all articles
Browse latest Browse all 1424

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>