<?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: fortran binary files in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191525#M150500</link>
    <description>&lt;P&gt;We'd need to see a small test program that demonstrates the problem. It could be that your program is reading past the end of the file. Please attach ZIP of the file and a program we can look at. Ideally this would be a small program that just tries to read some data from the file, but if you can't make that work the whole program is ok.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jul 2020 00:39:49 GMT</pubDate>
    <dc:creator>Steve_Lionel</dc:creator>
    <dc:date>2020-07-11T00:39:49Z</dc:date>
    <item>
      <title>fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190559#M150427</link>
      <description>&lt;P&gt;I am under the impression I can make a binary file that allows random access to a set of fixed size records.&lt;/P&gt;
&lt;P&gt;Its allowing me to write records sequentially, but if I pick a record number, I cant do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example if I have 100 records of 20 integer words each, I should be able to pick and replace record number 48, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I dont have the right set of keywords to open the file. But you dont give us any examples that I can find.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 07:55:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190559#M150427</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-08T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190570#M150430</link>
      <description>&lt;P&gt;subroutine screwup&lt;BR /&gt;integer(4) pr(6000)&lt;BR /&gt;open(2,file='screwup2.dat',form='binary',recl=6000)&lt;BR /&gt;do 10 irec=1,100&lt;BR /&gt;10 write(2,rec=irec)pr&lt;BR /&gt;rewind 2&lt;BR /&gt;do 20 irec=1,100&lt;BR /&gt;read(2,rec=irec)pr&lt;BR /&gt;20 print *,"rec ",irec," read"&lt;BR /&gt;pause&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As long as I write the files and read them sequentially, it works.&lt;/P&gt;
&lt;P&gt;But I cannot pick a record randomly. So that rec=irec option illegal ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 08:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190570#M150430</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-08T08:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190595#M150431</link>
      <description>&lt;P&gt;Read about the ACCESS='DIRECT' specifier in the file OPEN statement. Related to this is he specifier FORM='...'&lt;/P&gt;
&lt;P&gt;Do not use the nonstandard FORM='BINARY' unless you understand the implications.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 09:45:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190595#M150431</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-07-08T09:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190629#M150434</link>
      <description>&lt;P&gt;I have to say Form="binary" since I am working with Midi files,&lt;/P&gt;
&lt;P&gt;generated by music software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway thanks for the helpful tips.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 11:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190629#M150434</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-08T11:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190734#M150448</link>
      <description>&lt;P&gt;form='binary' is an extension. Instead you should be using form="unformatted", access="stream".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:24:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190734#M150448</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-07-08T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190764#M150451</link>
      <description>&lt;P&gt;Well, I still cant get it to access that file, when I use your suggestion.&lt;/P&gt;
&lt;P&gt;It says "file not found" even when the file is where it can easily find it.&lt;/P&gt;
&lt;P&gt;So should I be able to attach the file, regardless of what kind it is ?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;subroutine getmid()&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;character*20 FN/"LAFA.mid"/ &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;integer(4) midirec(60)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;!&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;110&amp;nbsp; format(A20)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;12&amp;nbsp; &amp;nbsp; open(2,file="LAFA.MID", &amp;amp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;form="unformatted", access="stream", action="READ")&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;do irec=1,100&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; read(2)midirec&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; print *,"record ",irec," read"&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;enddo&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Didnt someone write about this matter recently ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:13:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190764#M150451</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-08T20:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190775#M150453</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;It says "file not found" even when the file is where it can easily find it.&lt;/P&gt;
&lt;P&gt;Then most likely the (your) current directory is not where you expect it to be.&lt;/P&gt;
&lt;P&gt;The current directory can be located anywhere.&lt;/P&gt;
&lt;P&gt;When launched from an IDE, the current directory is usually specified on some property page (e.g. Debug or Release configuration). Default for MS Visual Studio is the Project Folder, but you can set it anywhere else. Your executable is likely located elsewhere.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimdempseyatthecove_0-1594241470589.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/11108iE1E40B2A1D7CC8D4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="jimdempseyatthecove_0-1594241470589.png" alt="jimdempseyatthecove_0-1594241470589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could add an OPEN file for output such as "WhereAmI" write something to it (e.g. "Here I am"), close the file. Then find the file.&lt;/P&gt;
&lt;P&gt;There is also a Current Drive.&lt;/P&gt;
&lt;P&gt;Using "LAFA.MID" specifies the file is located in the "current directory" on the "current drive.&lt;/P&gt;
&lt;P&gt;Function GETDRIVEQQ and GETDRIVEDIRQQ can also be used to query the system.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:59:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190775#M150453</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2020-07-08T20:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190780#M150456</link>
      <description>&lt;P&gt;Use the full path file name as a good low effort starting point!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 21:24:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1190780#M150456</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2020-07-08T21:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191154#M150475</link>
      <description>&lt;P&gt;I made sure the executable is where where Its supposed to be,&lt;/P&gt;
&lt;P&gt;By opening a scratch file and seeing where it gets put. I can verify that it is always put in the same location as the data I want to look at.&lt;/P&gt;
&lt;P&gt;And I can always attach the file on an OPEN statement, but every time I try to read one record it gives me an EOF return, rather than reading in the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there someone at INTEL that has actually had to deal with a similar problem, so we dont do this endless guesswork ? I will pay for their time.&lt;/P&gt;
&lt;P&gt;The file I am working with was probably generated on a MAC machine, which is why I have to treat it as a "strange" format, with a raw set of data bytes.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 00:34:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191154#M150475</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-10T00:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191270#M150477</link>
      <description>&lt;P&gt;Can you share the file you are trying to read?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 07:49:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191270#M150477</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2020-07-10T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191366#M150482</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;And I can always attach the file on an OPEN statement, but every time I try to read one record it gives me an EOF return, rather than reading in the data.&lt;/P&gt;
&lt;P&gt;Your original post was File Not Found. So now you have File Found, but data not being read.&lt;/P&gt;
&lt;P&gt;It is likely that the data you have composed for consumption is not conformant with the READ statements you are issuing.&lt;/P&gt;
&lt;P&gt;Fortran expects data format compatible with the format specified in the OPEN statement. For example of an erroneous condition, your Open expects textual data, perhaps comma delimited. Fortran expects (requires) the file to be ASCII (7-bit) compliant. Should you create your input file using say WordPad, the default output format is UTF-8, not 7-bit ASCII. To correct this in WordPad you use SaveAs and select Plain Text format.&lt;/P&gt;
&lt;P&gt;You should be able to construct a simple program (e.g. with OPEN, READ a record, PRINT a record) and supply a small data file. (assuming the example program exhibits the error).&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 14:28:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191366#M150482</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2020-07-10T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191421#M150486</link>
      <description>&lt;P&gt;It is almost certainly the case that the program is opening the file in a different location than you expect. If you are running from inside Visual Studio, the default directory is the project directory, NOT the one with the EXE.&lt;/P&gt;
&lt;P&gt;What will happen then is that the OPEN will create a new, empty file, which then gets you an EOF when you try to read from it. Look for other copies of this data file and you will likely find an empty one where you don't expect it.&lt;/P&gt;
&lt;P&gt;This is a fairly common thing that Windows users run into. It has nothing to do with the data file itself.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:51:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191421#M150486</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-07-10T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191495#M150494</link>
      <description>&lt;P&gt;Actually, when I get an error message, I can always look at the path it took in the file directory.&lt;/P&gt;
&lt;P&gt;I dont understand why I still sometime get "file not found" when the file directory is correct and the file is sitting there.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 22:12:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191495#M150494</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-10T22:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191496#M150495</link>
      <description>&lt;P&gt;It doesn't give give me a way to do that.&lt;/P&gt;
&lt;P&gt;Not obvious, anyway. It is sitting in my user file directory,&lt;/P&gt;
&lt;P&gt;but how do I transfer the whole file ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was imported from outside, but I find it hard to understand why there is no way to examine the contents of it, even as a "raw binary"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would access="STREAM" be the correct way ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 22:18:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191496#M150495</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-10T22:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191503#M150496</link>
      <description>&lt;P&gt;Here is the file I am trying to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use "drag and drop." or Browse files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But nothing happens when I click on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dont they bother to check this stuff ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 22:30:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191503#M150496</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-10T22:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191512#M150498</link>
      <description>&lt;P&gt;You can put the file in a ZIP archive and attach that. I am going to test that here. (It worked. Be sure to drag it onto the "attach" box and not the message box.)&lt;/P&gt;
&lt;P&gt;Would you please show the actual and complete error message you get for "file not found" and also a directory listing of the directory you think the file should be found in? That you sometimes get EOF tells me that it is being created empty because the intended file is not there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do recommend using ACCESS='STREAM', FORM='UNFORMATTED' (and unformatted READs) to read binary data.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 23:32:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191512#M150498</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-07-10T23:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191518#M150499</link>
      <description>&lt;P&gt;&lt;U&gt; input file name:&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;lafa.mid&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;Access method:&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;stream&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;LGU 2 file opened OK&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;forrtl: severe (24): end-of-file during read, unit 2, file C:\Users\Administrator\documents\visual studio 2010\Projects\Console8\Console8\lafa.mid&lt;/U&gt;&lt;BR /&gt;Image PC Routine Line Source&lt;BR /&gt;libifcoremdd.dll 510B19D2 Unknown Unknown Unknown&lt;BR /&gt;libifcoremdd.dll 510EED7F Unknown Unknown Unknown&lt;BR /&gt;Console8.exe 00C612A6 _GETMIDI 29 CONSOLE8.F90&lt;BR /&gt;Console8.exe 00C63F37 _MAIN__ 7 CONSOLE8.F90&lt;BR /&gt;Console8.exe 00C65CAF Unknown Unknown Unknown&lt;BR /&gt;Console8.exe 00C6466F Unknown Unknown Unknown&lt;BR /&gt;Console8.exe 00C6449F Unknown Unknown Unknown&lt;BR /&gt;KERNEL32.DLL 76B16359 Unknown Unknown Unknown&lt;BR /&gt;ntdll.dll 77467B74 Unknown Unknown Unknown&lt;BR /&gt;ntdll.dll 77467B44 Unknown Unknown Unknown&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see that it attaches the file, but I get the ERROR QUIT when it tries to do any reading from it. I did use the Stream input method, as you recommended.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 00:08:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191518#M150499</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-11T00:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191525#M150500</link>
      <description>&lt;P&gt;We'd need to see a small test program that demonstrates the problem. It could be that your program is reading past the end of the file. Please attach ZIP of the file and a program we can look at. Ideally this would be a small program that just tries to read some data from the file, but if you can't make that work the whole program is ok.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 00:39:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191525#M150500</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-07-11T00:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191528#M150501</link>
      <description>&lt;P&gt;OK, here is the source code. I am trying to read a standard MIDI file from a music program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;subroutine getmidi()&lt;BR /&gt;character*20 FN&amp;nbsp;&lt;BR /&gt;character*20 AM&lt;BR /&gt;integer(4) midirec(60)&lt;BR /&gt;!&lt;BR /&gt;110 format(A20) &lt;BR /&gt;12 print *,"input file name:"&lt;BR /&gt;READ(*,110)FN&lt;BR /&gt;print *,"Access method:"&lt;BR /&gt;READ(*,110)AM&lt;BR /&gt;open(2,file=FN,access=AM, form="UNFORMATTED")&lt;BR /&gt;35 print *,"LGU 2 file opened OK"&lt;BR /&gt;do irec=1,100&lt;BR /&gt;! this is where it falls apart&lt;BR /&gt;! It gives me an EOF, rather than reading in any data.&lt;BR /&gt;! I am trying to use STREAM input&lt;BR /&gt;read(2)midirec&lt;BR /&gt;print *,"record ",irec," read"&lt;BR /&gt;print *,"contents:",midirec&lt;BR /&gt;enddo&lt;BR /&gt;end&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 00:58:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191528#M150501</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-11T00:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: fortran binary files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191530#M150502</link>
      <description>&lt;P&gt;BTW, the file I was reading has more than 230K bytes of data, so I dont think I would be getting an End-of-File right at the beginning of the 1st read operation. I had trouble attaching the actual file, but I can make a more concerted effort if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It keeps telling me the file type is "not supported." Its a standard file used every where, so I dont see why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would probably get the same problem, no matter what type it is ?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 01:12:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/fortran-binary-files/m-p/1191530#M150502</guid>
      <dc:creator>WSinc</dc:creator>
      <dc:date>2020-07-11T01:12:27Z</dc:date>
    </item>
  </channel>
</rss>

