Boucle fichiers

Following the ongoing discussion on the use of other (human) languages, as a demonstration, this is the raw automatic translations of @said 's question and @gardhor 's answer, from French to English, obtained with https://www.deepl.com/home


Hello,
I have a program with a loop, and I would like to save several files (data.txt ): at each run create a file whose name depends on the index

thank you for your help.

program ex4
open(10,file=‘data.txt’)


Hello Said and welcome.

To complete the previous answer. The index of a loop in fortran must be an integer (the possibility to use a real has been removed).
Probably, you should read up on the fortran language. For example in French :

http://www.idris.fr/media/formations/fortran/idris_fortran_base_cours.pdf 2

There is also a discussion on this forum about books and documentations:

https://fortran-lang.discourse.group/t/books-for-the-learn-page/

Translated with www.DeepL.com/Translator (free version)


Note the “2” character at the end of the first link, which is the number of times the initial link was clicked. I kept it on purpose, but we should of course remove it to avoid confusion.
In Said’s question, I have just added a “:” after (data.txt ) in the French text to improve clarity.

2 Likes