Users Pricing

forum

Home Forums How to Convert Integers to String in Fortran? – MindStick

How to Convert Integers to String in Fortran?

Anonymous User 2857 19 Nov 2014

I have a program in Fortran that saves the results to a file. At the moment I open the file using

OPEN (1, FILE = 'Output.TXT')

However, I now want to run a loop, and save the results of each iteration to the files 'Output1.TXT', 'Output2.TXT', 'Output3.txt', ...

Is there an easy way in Fortran to constuct filenames from the loop counter i?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md