<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — How to setup a formatted data file for a FORTRAN code to read]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=943</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=943&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to setup a formatted data file for a FORTRAN code to read.]]></description>
		<lastBuildDate>Wed, 20 Mar 2024 16:18:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to setup a formatted data file for a FORTRAN code to read]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4306#p4306</link>
			<description><![CDATA[<p>You should be able to change any text file in Simply Fortran.&nbsp; Are you sure the file isn&#039;t changing, or are you relying on program output to confirm it isn&#039;t changing?</p><p>Also, just a warning, but using UNIT=5 is dangerous as it usually represents the console input.&nbsp; You should really choose a different unit number.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 20 Mar 2024 16:18:12 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4306#p4306</guid>
		</item>
		<item>
			<title><![CDATA[How to setup a formatted data file for a FORTRAN code to read]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4305#p4305</link>
			<description><![CDATA[<p>I have a legacy F77 code that uses formatted READ statements to read input from a formatted data file. I know that an OPEN statement should be used to get access to the data file. My OPEN statement is this:</p><p>&nbsp; &nbsp; &nbsp; NIN = 5&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; OPEN(NIN,FILE=&#039;BELKNAP5.dat&#039;)&nbsp; &nbsp;</p><p>and the file BELKNAP5.dat was originally created as a txt file using Microsoft Notes and then renamed. I included this file with my list of F77 modules, saved everything as a new project, build and launch the project, and the code does indeed seem to access this data file and runs with it OK. However, when I try to change the data file using the SF editor, say change one entry to see what happens, and try to &quot;save&quot; it, nothing gets changed. Perhaps this is not at all the correct way to update the data file? Do I have to go back and re-create the data file in Microsoft Notes?</p>]]></description>
			<author><![CDATA[null@example.com (kbannister)]]></author>
			<pubDate>Wed, 20 Mar 2024 12:54:04 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4305#p4305</guid>
		</item>
	</channel>
</rss>
