<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[esxDOS BBS — TR-DOS: Sequential file streams - Invalid stream on open for read]]></title>
	<link rel="self" href="https://board.esxdos.org/extern.php?action=feed&amp;tid=447&amp;type=atom" />
	<updated>2019-03-17T07:51:12Z</updated>
	<generator>PunBB</generator>
	<id>https://board.esxdos.org/viewtopic.php?id=447</id>
		<entry>
			<title type="html"><![CDATA[TR-DOS: Sequential file streams - Invalid stream on open for read]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=1143#p1143" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I was trying to use the file streams with TR-DOS and found a bug: opening streams for writing works, but opening for read always returns &#039;Ivalid stream&#039; error.</p><p>Here is a sample programs that work on FUSE with Betadisk enabled:</p><div class="codebox"><pre><code>   10 LET DOS=15619
   11 PRINT &quot;DELETING DATA FILE&quot;
   12 RANDOMIZE USR DOS: REM : ERASE &quot;DATA&quot;#
   15 PRINT &quot;OPENING WRITE STREAM&quot;
   20 RANDOMIZE USR DOS: REM : OPEN #4,&quot;DATA&quot;,W
   25 PRINT &quot;WRITING&quot;
   30 PRINT #4;&quot;DATA LINE 2&quot;
   35 PRINT &quot;CLOSING&quot;
   40 RANDOMIZE USR DOS: REM : CLOSE #4
   45 PRINT &quot;OPENING READ STREAM&quot;
   50 RANDOMIZE USR DOS: REM : OPEN #4,&quot;DATA&quot;,R
   55 PRINT &quot;READING&quot;
   60 INPUT #4;A$: PRINT A$
   65 PRINT &quot;CLOSING&quot;
   70 RANDOMIZE USR 15619: REM : CLOSE #4
   75 PRINT &quot;DONE&quot;</code></pre></div><p>The error is thrown at line 50.</p>]]></content>
			<author>
				<name><![CDATA[macca]]></name>
				<uri>https://board.esxdos.org/profile.php?id=409</uri>
			</author>
			<updated>2019-03-17T07:51:12Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=1143#p1143</id>
		</entry>
</feed>
