<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: opening multiple files in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/opening-multiple-files/m-p/909985#M83173</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
simply create a filename character string.&lt;BR /&gt;Then use an internal write to increment the filename string 'name'&lt;BR /&gt;use open to open the files (and close after if you no longer need)&lt;BR /&gt;&lt;BR /&gt;so for example&lt;BR /&gt;character*255 myfilename&lt;BR /&gt;number=0&lt;BR /&gt;do i=1,100&lt;BR /&gt; number= number+1&lt;BR /&gt; write(myfilename,100) number&lt;BR /&gt; 100 format('file_',i3.3,'.dat')&lt;BR /&gt; open (filename=myfilename, unit=number)&lt;BR /&gt;write(i,110) number&lt;BR /&gt; 110 format(' this is file', i3.3)&lt;BR /&gt;end do</description>
    <pubDate>Mon, 04 May 2009 15:48:21 GMT</pubDate>
    <dc:creator>bmchenry</dc:creator>
    <dc:date>2009-05-04T15:48:21Z</dc:date>
    <item>
      <title>opening multiple files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/opening-multiple-files/m-p/909984#M83172</link>
      <description>Can somebody please tell me how to open and write in multiple files using Compaq Visual Fortran.&lt;BR /&gt;For example,in a simple Do iteration loop:&lt;BR /&gt;number=0&lt;BR /&gt;do i=1,100&lt;BR /&gt;number=number+1&lt;BR /&gt;What do i have to write next so that each ''number'' is written in a different file,and not overwrite the file &lt;BR /&gt;created with a normal open file statement.Furthermore,is there any possible way to control the file name,&lt;BR /&gt;so that the 100 files generated will have the following names: file_1.dat,file_2.dat,and so on.&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 04 May 2009 14:28:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/opening-multiple-files/m-p/909984#M83172</guid>
      <dc:creator>Oliviu</dc:creator>
      <dc:date>2009-05-04T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: opening multiple files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/opening-multiple-files/m-p/909985#M83173</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
simply create a filename character string.&lt;BR /&gt;Then use an internal write to increment the filename string 'name'&lt;BR /&gt;use open to open the files (and close after if you no longer need)&lt;BR /&gt;&lt;BR /&gt;so for example&lt;BR /&gt;character*255 myfilename&lt;BR /&gt;number=0&lt;BR /&gt;do i=1,100&lt;BR /&gt; number= number+1&lt;BR /&gt; write(myfilename,100) number&lt;BR /&gt; 100 format('file_',i3.3,'.dat')&lt;BR /&gt; open (filename=myfilename, unit=number)&lt;BR /&gt;write(i,110) number&lt;BR /&gt; 110 format(' this is file', i3.3)&lt;BR /&gt;end do</description>
      <pubDate>Mon, 04 May 2009 15:48:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/opening-multiple-files/m-p/909985#M83173</guid>
      <dc:creator>bmchenry</dc:creator>
      <dc:date>2009-05-04T15:48:21Z</dc:date>
    </item>
  </channel>
</rss>

