<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — How to setup a formatted data file for a FORTRAN code to read]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=943&amp;type=atom" />
	<updated>2024-03-20T16:18:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=943</id>
		<entry>
			<title type="html"><![CDATA[Re: How to setup a formatted data file for a FORTRAN code to read]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4306#p4306" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2024-03-20T16:18:12Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4306#p4306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to setup a formatted data file for a FORTRAN code to read]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4305#p4305" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kbannister]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3934</uri>
			</author>
			<updated>2024-03-20T12:54:04Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4305#p4305</id>
		</entry>
</feed>
