# Boucle fichiers

**URL:** <https://fortran-lang.discourse.group/t/boucle-fichiers/381>\
**Category:** Uncategorized\
**Created:** [October 31, 2020, 6:33am UTC](https://fortran-lang.discourse.group/t/boucle-fichiers/381 "2020-10-31T06:33:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [November 3, 2020, 8:03am UTC](https://fortran-lang.discourse.group/t/boucle-fichiers/381/7 "2020-11-03T08:03:46Z")

</div>

Following the ongoing discussion [on the use of other (human) languages](https://fortran-lang.discourse.group/t/should-fortran-discourse-be-open-to-languages-other-than-english/385/22), 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](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](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/](https://fortran-lang.discourse.group/t/books-for-the-learn-page/)_

_Translated with [www.DeepL.com/Translator](http://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.

---

_[View the full topic](https://fortran-lang.discourse.group/t/boucle-fichiers/381)._
