<?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[seekg]]></title><description><![CDATA[<p>hey,</p>
<p>hab ein problem beim positionieren innerhalb eines files. lese mit</p>
<pre><code>in = oldfile.get();
</code></pre>
<p>ein. breche das auslesen nach einer bestimmten anzahl an durchläufen ab. das anschließende neupos. fkt. auch super, außer wenn ich das file ende erriecht hab.</p>
<pre><code>oldfile.seekg(0, ios::beg);
</code></pre>
<p>dann kommt nur noch mist. kann mir jemand nen tip geben?</p>
<p>ps: oldfile ist ein fstream</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/112896/seekg</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 14:06:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/112896.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jun 2005 11:37:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to seekg on Fri, 17 Jun 2005 11:37:04 GMT]]></title><description><![CDATA[<p>hey,</p>
<p>hab ein problem beim positionieren innerhalb eines files. lese mit</p>
<pre><code>in = oldfile.get();
</code></pre>
<p>ein. breche das auslesen nach einer bestimmten anzahl an durchläufen ab. das anschließende neupos. fkt. auch super, außer wenn ich das file ende erriecht hab.</p>
<pre><code>oldfile.seekg(0, ios::beg);
</code></pre>
<p>dann kommt nur noch mist. kann mir jemand nen tip geben?</p>
<p>ps: oldfile ist ein fstream</p>
]]></description><link>https://www.c-plusplus.net/forum/post/811101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/811101</guid><dc:creator><![CDATA[susan]]></dc:creator><pubDate>Fri, 17 Jun 2005 11:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to seekg on Fri, 17 Jun 2005 11:47:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Wenn das File das Ende erreicht hatte ist das Eof-Flag gesetzt. Mach vor dem seekg einfach mal ein oldfile.clear(). Keine Sorge, das löscht nicht das File, sondern setzt nur dir Flags zurück.<br />
siehe auch in der C++-FAQ: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39469.html" rel="nofollow">Ströme und Dateien in C++</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/811107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/811107</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 17 Jun 2005 11:47:55 GMT</pubDate></item><item><title><![CDATA[Reply to seekg on Fri, 17 Jun 2005 11:57:28 GMT]]></title><description><![CDATA[<p>dank dir</p>
<p>es tuts endlich. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/811114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/811114</guid><dc:creator><![CDATA[susan]]></dc:creator><pubDate>Fri, 17 Jun 2005 11:57:28 GMT</pubDate></item></channel></rss>