<?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 For what it's worth, if you in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960699#M94635</link>
    <description>&lt;P&gt;For what it's worth, if you write&lt;BR /&gt;&lt;BR /&gt;CHARACTER(256) STRING&lt;BR /&gt;STRING = 'C:\\Fort\pete.txt'C&lt;/P&gt;
&lt;P&gt;where the appended C marks the character string as a 'C-string',&lt;BR /&gt;and then compile, the COMPILER will treat the first backslash as a control character&lt;BR /&gt;telling it that the next backslash is ok and it will not store (i.e. remove) the first backslash,&lt;BR /&gt;so STRING will be filled with the string 'C:\Fort\pete.txt' after it is stored somewhere in the executable ready for when the program is executed.&lt;/P&gt;
&lt;P&gt;However, suppose you have a concatenation such as&lt;/P&gt;
&lt;P&gt;STRING1='C:\\MYPATH'&lt;BR /&gt;STRING2=STRING1//'//MYFILE.TXT'C&lt;/P&gt;
&lt;P&gt;Then the COMPILER will not remove the extra backslash in STRING1, as it is not marked as a C-string (no appended 'C'),&lt;BR /&gt;but during compilation it will remove the extra backslash in the string being concatenated, as it is marked as a C-string and therefore recognised as such. The result will be STRING2 will have an extra backslash in the path and so that may cause a problem later.&lt;BR /&gt;Basically, if the compiler can 'see' and therefore 'recognise' a string as a C-string, it will interpret control combinations such as //, /r,/n,/b,/a (backslash, newline,backspace, bell) and store the appropriate ASCII character in the place of the 2-character escape sequence combination.&lt;BR /&gt;If it cannot recognise the string as a C-string, it will just take the characters presented and store them.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2013 09:27:00 GMT</pubDate>
    <dc:creator>Anthony_Richards</dc:creator>
    <dc:date>2013-07-31T09:27:00Z</dc:date>
    <item>
      <title>Fortran reading and writing files</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960682#M94618</link>
      <description>&lt;P&gt;Below is some code i made to read data from a text file and then write it to another the line of code that trips it is "&amp;nbsp;read (10,*)i,j " I tried hard to find why it doesnt work but i cant do it. Someone please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;program xproduct&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;implicit none&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; integer :: i,j&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open (unit=10,file='C:\\Fort\pete.txt')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read (10,*)i,j&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open (unit=20,file='C:\\Fort\pete.out',action="write",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; status="replace")&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;write (20,*) "The product of",i," and",j&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;write (20,*) "is",i*j&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;close (unit=20)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close (unit=10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end program xproduct&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2013 11:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960682#M94618</guid>
      <dc:creator>Peter_K_7</dc:creator>
      <dc:date>2013-07-25T11:13:19Z</dc:date>
    </item>
    <item>
      <title>I suppose we would need to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960683#M94619</link>
      <description>&lt;P&gt;I suppose we would need to see the contents of pete.txt as well as the full text of the error message.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:26:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960683#M94619</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-07-25T14:26:05Z</dc:date>
    </item>
    <item>
      <title>The following adaptation of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960684#M94620</link>
      <description>&lt;P&gt;The following adaptation of xprodict should identify the problem:&lt;/P&gt;
&lt;P&gt;[fortran]program xproduct&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; implicit none&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; integer :: i,j, iostat&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open (unit=10,file='C:\\Fort\pete.txt', iostat=iostat)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Opening C:\\Fort\pete.txt')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read (10,*,iostat=iostat)i,j&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Reading i,j')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open (unit=20,file='C:\\Fort\pete.out',action="write",status="replace", iostat=iostat)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Opening C:\\Fort\pete.out')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write (20,*, iostat=iostat) "The product of",i," and",j&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Writing i,j to 20')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write (20,*, iostat=iostat) "is",i*j&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Writing i*j to 20')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close (unit=20, iostat=iostat)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Closing C:\\Fort\pete.out')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close (unit=10, iostat=iostat)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call report_error (iostat, 'Closing C:\\Fort\pete.txt')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; end program xproduct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; subroutine report_error (iostat, comment)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; integer :: iostat&lt;BR /&gt;&amp;nbsp;&amp;nbsp; character comment*(*)&lt;BR /&gt;!&lt;BR /&gt;!&amp;nbsp;&amp;nbsp; if (iostat==0) return&lt;BR /&gt;&amp;nbsp;&amp;nbsp; write (*,*) '&amp;nbsp;&amp;nbsp;&amp;nbsp; iostat =',iostat,' :',comment&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end[/fortran]&lt;/P&gt;
&lt;P&gt;Perhaps 'C:\\Fort\pete.txt' should be 'C:\Fort\pete.txt' is all that is wrong ?&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 00:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960684#M94620</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-26T00:07:30Z</dc:date>
    </item>
    <item>
      <title>You might find the following</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960685#M94621</link>
      <description>&lt;P&gt;You might find the following changes helpful, as I included IOSTAT= reports.&lt;/P&gt;
&lt;P&gt;(I could not find a IOSTAT message routine in ifort help, so wrote my own ? Is there one available ?)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 01:29:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960685#M94621</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-26T01:29:26Z</dc:date>
    </item>
    <item>
      <title>Fortran does not use the C/C+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960686#M94622</link>
      <description>&lt;P&gt;Fortran does not use the C/C++ escape character prefix "\" thus no requirement to use "\\" to pass one "\". Your file specification therefore contains a double \. Windows would likely treat this as C:, goto root (\), goto root again (\), ...&lt;/P&gt;
&lt;P&gt;Try changing "\\" to "\" and see what happens.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 03:16:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960686#M94622</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-07-26T03:16:39Z</dc:date>
    </item>
    <item>
      <title>Quote:John Campbell wrote:(I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960687#M94623</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;John Campbell wrote:&lt;BR /&gt;(I could not find a IOSTAT message routine in ifort help, so wrote my own ? Is there one available ?)&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The IOMSG specifier does something similar, i.e. CHARACTER(100) :: msg ; OPEN(xxx, IOSTAT=stat, IOMSG=msg)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 05:42:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960687#M94623</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2013-07-26T05:42:26Z</dc:date>
    </item>
    <item>
      <title>I tried the IOSTAT=reports</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960688#M94624</link>
      <description>&lt;P&gt;I tried the IOSTAT=reports and IOMSG=reports but both of them came up with errors for unpaired right brackets on lines 9 and 10&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 12:21:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960688#M94624</guid>
      <dc:creator>Peter_K_7</dc:creator>
      <dc:date>2013-07-26T12:21:56Z</dc:date>
    </item>
    <item>
      <title>also I removed a "/" from the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960689#M94625</link>
      <description>&lt;P&gt;also I removed a "/" from the place in my file path names where I had two instead of one. Nothing changed but i bet its still right coz im just a fortran newbie.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 12:43:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960689#M94625</guid>
      <dc:creator>Peter_K_7</dc:creator>
      <dc:date>2013-07-26T12:43:43Z</dc:date>
    </item>
    <item>
      <title>Peter,IOSTAT= assigns to an</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960690#M94626</link>
      <description>&lt;P&gt;Peter,&lt;BR /&gt;IOSTAT= assigns to an integer variable the value of which you can look up in the help (cf IOSTAT, errors returned to)&lt;BR /&gt;IOMSG= assigns to a character variable.&lt;BR /&gt;In a post above you say "both of them came up with errors for unpaired right brackets on lines 9 and 10" That sounds like a compile time&amp;nbsp;error rather than a runtime error.&lt;/P&gt;
&lt;P&gt;It would help us to help you if you attached&amp;nbsp;the actual (unedited)&amp;nbsp;code.&lt;/P&gt;
&lt;P&gt;Is the code fixed or free form ?&lt;/P&gt;
&lt;P&gt;Les&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 13:50:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960690#M94626</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2013-07-26T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Peter,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960691#M94627</link>
      <description>&lt;P&gt;Peter,&lt;/P&gt;
&lt;P&gt;The latest&amp;nbsp;errors reported could be that the compiler assumes you have a fixed format (.for), rather than free format (.f90) code.&lt;/P&gt;
&lt;P&gt;In the first post I did, I can now see that the use of cut/paste again did not work in this windows forum.&amp;nbsp; The paste changed the use of \, removing 2 of the 3 \ in each file name.&lt;BR /&gt;&amp;nbsp;( For how long do we continue to have to work around basic things like cut/paste not working and the hastles of soft and hard carriage returns ! Again, this is a "windows" forum)&lt;/P&gt;
&lt;P&gt;My best guess of your original problem is the .txt file is either not opened correctly (does not exist or access rights problems) or the first two entries in the file are not the values of the two integers, I &amp;amp; J.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2013 00:36:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960691#M94627</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-27T00:36:37Z</dc:date>
    </item>
    <item>
      <title>Cut/paste works if you follow</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960692#M94628</link>
      <description>&lt;P&gt;Cut/paste works if you follow the instruction for including Fortran code.&amp;nbsp; You do this as follows:&lt;/P&gt;
&lt;P&gt;[ fortran ]&lt;BR /&gt;your code here&lt;BR /&gt;[ /fortran ]&lt;/P&gt;
&lt;P&gt;except that there are no blanks in the surrounding tags (if I removed the tags here then they'd be interpreted.) However, I am not aware that it removes backslashes. Why would you have three backslashes in a filename? Maybe you have this wrong in the source - the file you're opening should be specified as ''C:\Fort\pete.txt'. This is Fortran, not C, you don't escape backslashes (unless you're using C strings, which you're not.) In fact, this may be your entire problem.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2013 00:43:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960692#M94628</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-07-27T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960693#M94629</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;The three \ is not the problem, as I tested it, using Peter's original file names and&amp;nbsp;found that the file opened successfully. Jim offered an explaination of this. However, I would change the name.&lt;BR /&gt;The answer might be in Windows 7/8 access rights. Opening the file for readonly access might remove the problem. My recommendation is to check the IOSTAT value of each file access.&lt;BR /&gt;A copy of pete.txt might also provide some insight.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2013 02:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960693#M94629</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-27T02:09:06Z</dc:date>
    </item>
    <item>
      <title>The reason I wondered about</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960694#M94630</link>
      <description>&lt;P&gt;The reason I wondered about the file name is that he hasn't yet told us what the error is. Often I see cases where the file that is opened is not the one the user wanted, and a new, empty file is created by default. Then a READ will get an end-of-file.&lt;/P&gt;
&lt;P&gt;Yes, we are all trying our crystal balls and finding them inadequate...&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:49:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960694#M94630</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-07-29T17:49:36Z</dc:date>
    </item>
    <item>
      <title>I disagree that paste works</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960695#M94631</link>
      <description>&lt;P&gt;I disagree that paste works if you enclose it in Fortran delimiters. Yes it pastes, but the result is mangled. At the very least, it tends to delete blanks and insert line breaks. And the visual formatting is atrocious; everything appears double-spaced and occasionally triple-spaced if it happened that a real line break was inserted. After pasting, you have to go through the result carefully and fix it up or it won't appear right.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 04:02:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960695#M94631</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2013-07-30T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Quote:dboggs wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960696#M94632</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;dboggs wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;...At the very least, it tends to delete blanks and insert line breaks..&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Not only is the visual appearance affected but one has to "submit" the post, inspect the not-so-pretty results and correct line numbers if they are mentioned in the text of the post. Too often, the line numbers mentioned in the post do not match those in the program listing and one has to edit the post and fix the line numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:19:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960696#M94632</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-07-30T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960697#M94633</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, I am not aware that it removes backslashes. Why would you have three backslashes in a filename?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The syntax highlighting formatter devours characters such as backslash, &amp;lt;, &amp;gt;, [, ]. To compensate for this, one sometimes tries to give it two, with the hope that it will eat only one and leave the other intact so that readers can view it. See this thread to see how the formatter, given a simple C source, ate the angle brackets and the included file names:&amp;nbsp;http://software.intel.com/en-us/comment/reply/402436/1744952 . &amp;nbsp;Even using the "view page source" feature of the browser does not reveal the include file names -- they are gone for ever.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960697#M94633</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-07-30T14:28:00Z</dc:date>
    </item>
    <item>
      <title>There must be a fairly</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960698#M94634</link>
      <description>&lt;P&gt;There must be a fairly significant difference between the aims of the developers of this forum and the experiences of it's users. For those of us who are developing Fortran code in a windows environment, the way this&amp;nbsp;forum IDE responds is very frustrating and distracting from what we are trying to do. I am&amp;nbsp;becoming amazed and frustrated at the persistence of Intel in not fixing what is a user interface with significant problems.&lt;/P&gt;
&lt;P&gt;The way it handles a simple Enter, and how it devours a basic cut and paste should have been corrected months ago. I suspect this response must be acceptable in some other computer environment, but not one I am familiar with. All other IDE's I use on my Windows system&amp;nbsp;do not behave like this, and you can use a&amp;nbsp;fairly general interpretation of IDE, such as Visual Studio, Word, Notepad, other forums&amp;nbsp;etc. Even booking a flight on-line is easier than this !&lt;/P&gt;
&lt;P&gt;Why can't it be fixed.&lt;/P&gt;
&lt;P&gt;With regard to the learned approach of posting, then editing; this is only allowed in a response post, as the original post to a new&amp;nbsp;thread can not be edited. There are a few examples there of devoured layouts in a new thread post.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 03:40:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960698#M94634</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-31T03:40:05Z</dc:date>
    </item>
    <item>
      <title>For what it's worth, if you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960699#M94635</link>
      <description>&lt;P&gt;For what it's worth, if you write&lt;BR /&gt;&lt;BR /&gt;CHARACTER(256) STRING&lt;BR /&gt;STRING = 'C:\\Fort\pete.txt'C&lt;/P&gt;
&lt;P&gt;where the appended C marks the character string as a 'C-string',&lt;BR /&gt;and then compile, the COMPILER will treat the first backslash as a control character&lt;BR /&gt;telling it that the next backslash is ok and it will not store (i.e. remove) the first backslash,&lt;BR /&gt;so STRING will be filled with the string 'C:\Fort\pete.txt' after it is stored somewhere in the executable ready for when the program is executed.&lt;/P&gt;
&lt;P&gt;However, suppose you have a concatenation such as&lt;/P&gt;
&lt;P&gt;STRING1='C:\\MYPATH'&lt;BR /&gt;STRING2=STRING1//'//MYFILE.TXT'C&lt;/P&gt;
&lt;P&gt;Then the COMPILER will not remove the extra backslash in STRING1, as it is not marked as a C-string (no appended 'C'),&lt;BR /&gt;but during compilation it will remove the extra backslash in the string being concatenated, as it is marked as a C-string and therefore recognised as such. The result will be STRING2 will have an extra backslash in the path and so that may cause a problem later.&lt;BR /&gt;Basically, if the compiler can 'see' and therefore 'recognise' a string as a C-string, it will interpret control combinations such as //, /r,/n,/b,/a (backslash, newline,backspace, bell) and store the appropriate ASCII character in the place of the 2-character escape sequence combination.&lt;BR /&gt;If it cannot recognise the string as a C-string, it will just take the characters presented and store them.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 09:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960699#M94635</guid>
      <dc:creator>Anthony_Richards</dc:creator>
      <dc:date>2013-07-31T09:27:00Z</dc:date>
    </item>
    <item>
      <title>Anthony,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960700#M94636</link>
      <description>&lt;P&gt;Anthony,&lt;/P&gt;
&lt;P&gt;The \ removal came about when I copied text from a notepad screen to the forum comment box,via word paste (to try and overcome the hard/soft returns)&amp;nbsp;and enclosed the text with the [ fortran ][ /fortran ], as Steve is suggesting.&lt;BR /&gt;I did not notice this change to the post until some time later. ( the&amp;nbsp;later&amp;nbsp;attached file would show the difference.)&lt;/P&gt;
&lt;P&gt;It did not come about during a ifort compilation.&lt;/P&gt;
&lt;P&gt;My apologies if I did not explain clearly, but it was another frustration with how this forum&amp;nbsp;"IDE" works.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 11:19:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-reading-and-writing-files/m-p/960700#M94636</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-07-31T11:19:06Z</dc:date>
    </item>
  </channel>
</rss>

