<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Eine unbestimmte Anzahl Zeilen aus Datei lesen]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe eine Datei vorliegen die eine unbestimmte Anzahl Zeilen enthält und<br />
möchte nun sequentiell immer 16 Zeilen pro Schleifendurchgang auslesen.<br />
Die Idee ist eine For-Schleife zu nehmen und diese von 0 bis (anzahlZeilen/16)<br />
laufen zu lassen...<br />
Wie ermittle ich aber wieviele Zeilen eine Datei enthält?</p>
<p>Alternativ könnte man ja auch eine While-Schleife bis zum EOF laufen lassen,<br />
nur kennt das CFile-Objekt anscheinend kein EOF.<br />
Kann ich das trotzdem irgendwie simulieren?</p>
<p>Danke im Voraus,<br />
Khadgar</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/42573/eine-unbestimmte-anzahl-zeilen-aus-datei-lesen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 03:35:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/42573.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jul 2003 15:34:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 15:34:44 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe eine Datei vorliegen die eine unbestimmte Anzahl Zeilen enthält und<br />
möchte nun sequentiell immer 16 Zeilen pro Schleifendurchgang auslesen.<br />
Die Idee ist eine For-Schleife zu nehmen und diese von 0 bis (anzahlZeilen/16)<br />
laufen zu lassen...<br />
Wie ermittle ich aber wieviele Zeilen eine Datei enthält?</p>
<p>Alternativ könnte man ja auch eine While-Schleife bis zum EOF laufen lassen,<br />
nur kennt das CFile-Objekt anscheinend kein EOF.<br />
Kann ich das trotzdem irgendwie simulieren?</p>
<p>Danke im Voraus,<br />
Khadgar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/309017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309017</guid><dc:creator><![CDATA[Khadgar]]></dc:creator><pubDate>Mon, 14 Jul 2003 15:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 16:04:54 GMT]]></title><description><![CDATA[<p>CStdioFile statt CFile verwenden, da CFile keine Zeilen kennt.<br />
Einfach solange lesen, bis ReadString false zurück gibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/309050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309050</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 14 Jul 2003 16:04:54 GMT</pubDate></item><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 16:05:55 GMT]]></title><description><![CDATA[<p>Verstehe zwar nicht so ganz was du möchtest, aber:<br />
-&gt; CStdioFile::ReadString</p>
]]></description><link>https://www.c-plusplus.net/forum/post/309051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309051</guid><dc:creator><![CDATA[Oliver]]></dc:creator><pubDate>Mon, 14 Jul 2003 16:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 16:08:33 GMT]]></title><description><![CDATA[<p>Nemesyzz schrieb:</p>
<blockquote>
<p>Verstehe zwar nicht so ganz was du möchtest, aber:<br />
-&gt; CStdioFile::ReadString</p>
</blockquote>
<p>Sagte ich doch bereits, oder? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/309056</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309056</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 14 Jul 2003 16:08:33 GMT</pubDate></item><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 16:38:00 GMT]]></title><description><![CDATA[<p>dEUs schrieb:</p>
<blockquote>
<p>Nemesyzz schrieb:</p>
<blockquote>
<p>Verstehe zwar nicht so ganz was du möchtest, aber:<br />
-&gt; CStdioFile::ReadString</p>
</blockquote>
<p>Sagte ich doch bereits, oder? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Schau mal auf die Zeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/309078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309078</guid><dc:creator><![CDATA[Oliver]]></dc:creator><pubDate>Mon, 14 Jul 2003 16:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eine unbestimmte Anzahl Zeilen aus Datei lesen on Mon, 14 Jul 2003 16:43:25 GMT]]></title><description><![CDATA[<p>ok <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/309083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/309083</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Mon, 14 Jul 2003 16:43:25 GMT</pubDate></item></channel></rss>