<?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[FStream - mehr als 4096 Bytes...]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe schon mehrmals vom Problem gelesen (und es auch selbst erlebt), dass man (unter Windows) mit FStreams maximal 4096 Bytes schreiben (und auch lesen) kann.</p>
<p>Leider konnte ich bisher keine Lösung finden.</p>
<p>Kennt hier jemand also eine Lösung?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/269729/fstream-mehr-als-4096-bytes</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 00:19:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/269729.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jun 2010 12:23:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FStream - mehr als 4096 Bytes... on Wed, 30 Jun 2010 12:23:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe schon mehrmals vom Problem gelesen (und es auch selbst erlebt), dass man (unter Windows) mit FStreams maximal 4096 Bytes schreiben (und auch lesen) kann.</p>
<p>Leider konnte ich bisher keine Lösung finden.</p>
<p>Kennt hier jemand also eine Lösung?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919411</guid><dc:creator><![CDATA[Magellan]]></dc:creator><pubDate>Wed, 30 Jun 2010 12:23:08 GMT</pubDate></item><item><title><![CDATA[Reply to FStream - mehr als 4096 Bytes... on Wed, 30 Jun 2010 12:31:10 GMT]]></title><description><![CDATA[<p>Magellan schrieb:</p>
<blockquote>
<p>Leider konnte ich bisher keine Lösung finden.</p>
</blockquote>
<p>Ich konnte das Problem nicht finden.</p>
<pre><code class="language-cpp">#include &lt;fstream&gt;

int main()
{
   std::ofstream of(&quot;test.txt&quot;);
   for (int i = 0; i &lt; 5000; ++i)
      of &lt;&lt; i &lt;&lt; (i%32 ? ' ' : '\n');
   of &lt;&lt; std::endl;
}
</code></pre>
<p>schreibt deutlich mehr als 4096 Bytes ins Textfile, ohne Probleme. Sogar unter Windows.</p>
<p>Zeig am besten mal Code der das Problem reproduziert oder erkläre genauer was du meinst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919417</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 30 Jun 2010 12:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to FStream - mehr als 4096 Bytes... on Wed, 30 Jun 2010 13:20:42 GMT]]></title><description><![CDATA[<p>So,</p>
<p>nachdem dein Code bei mir auch funktionierte hab ich mal alle Projekte bei denen der Fehler autrat ( =2 ) durchgeschaut und in allen Fällen ein paar dumme Denkfehler ausgebessert.</p>
<p>Nun funktionierts wieder mit schreiben und lesen von Dateien.</p>
<p>Danke für die Hilfe. Das Thema ist damit erledigt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919448</guid><dc:creator><![CDATA[Magellan]]></dc:creator><pubDate>Wed, 30 Jun 2010 13:20:42 GMT</pubDate></item></channel></rss>