<?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 INPUT TEXT I/O will never be -1 in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/686458#M8165</link>
    <description>&lt;P&gt;Read a lines with Text IO&lt;/P&gt;&lt;P&gt;Input will never be -1 -&amp;gt; infinite loop , no End of file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Part of the script below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;aii = OPEN ("TEXT",i_pathnew,"SEPARATOR = '\n',MODE = RO,NEWLINE = LF,FULLPATH")

REPEAT
	IF y # -1 THEN ! BUG will never be -1 , no EOF
		y = INPUT (aii,i,1,a_impb[j][1]) : i=i+1
		y = INPUT (aii,i,1,a_impb[j][2]) : i=i+1
		y = INPUT (aii,i,1,a_impb[j][3]) : i=i+1
	ENDIF
 	j = j+1
	IF i &amp;gt; 40000 THEN
		PRINT "error no EOF"
		END
	ENDIF
UNTIL y = -1 ! ( OR i &amp;gt; 20000) quickfix to limit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 17:55:51 GMT</pubDate>
    <dc:creator>rudl</dc:creator>
    <dc:date>2025-12-09T17:55:51Z</dc:date>
    <item>
      <title>INPUT TEXT I/O will never be -1</title>
      <link>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/686458#M8165</link>
      <description>&lt;P&gt;Read a lines with Text IO&lt;/P&gt;&lt;P&gt;Input will never be -1 -&amp;gt; infinite loop , no End of file&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Part of the script below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;aii = OPEN ("TEXT",i_pathnew,"SEPARATOR = '\n',MODE = RO,NEWLINE = LF,FULLPATH")

REPEAT
	IF y # -1 THEN ! BUG will never be -1 , no EOF
		y = INPUT (aii,i,1,a_impb[j][1]) : i=i+1
		y = INPUT (aii,i,1,a_impb[j][2]) : i=i+1
		y = INPUT (aii,i,1,a_impb[j][3]) : i=i+1
	ENDIF
 	j = j+1
	IF i &amp;gt; 40000 THEN
		PRINT "error no EOF"
		END
	ENDIF
UNTIL y = -1 ! ( OR i &amp;gt; 20000) quickfix to limit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 17:55:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/686458#M8165</guid>
      <dc:creator>rudl</dc:creator>
      <dc:date>2025-12-09T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT TEXT I/O will never be -1</title>
      <link>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/687731#M8209</link>
      <description>&lt;P&gt;Well there seems to be more that doesn't work with the text I/O&lt;/P&gt;&lt;P&gt;and it might be related:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;IT finds and reads the file once it seems.&lt;BR /&gt;But still throws an error "can't find file" for every view I guess: sections / elevations...&lt;/P&gt;&lt;P&gt;My guess is closing the channel doesn't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe i should not have everything in master or try to prevent executing/opening the chanel that often somehow.&lt;/P&gt;&lt;P&gt;But still there is something wrong.&lt;BR /&gt;&lt;BR /&gt;This is on AC 27&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2025 11:51:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/687731#M8209</guid>
      <dc:creator>rudl</dc:creator>
      <dc:date>2025-12-27T11:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: INPUT TEXT I/O will never be -1</title>
      <link>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/689460#M8228</link>
      <description>&lt;P&gt;Hi rudl,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One issue might be, that you could read past the EOF since you read 3 times before checking if y = -1.&lt;BR /&gt;But that's just a quick observation. Haven't tested it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 11:07:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/689460#M8228</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2026-01-14T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Betreff: INPUT TEXT I/O will never be -1</title>
      <link>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/689688#M8230</link>
      <description>&lt;P&gt;Try to use the WHILE .. DO..&amp;nbsp; ENDWHILE instead of REPEAT, because WHILE checks the condition before it runs through the loop, REPEAT checks it after.&lt;BR /&gt;I always used the examples in the GDL Cookbook 3 as a template for my own routines and never had the issues you described.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 19:11:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/INPUT-TEXT-I-O-will-never-be-1/m-p/689688#M8230</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2026-01-14T19:11:48Z</dc:date>
    </item>
  </channel>
</rss>

