<?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[zeildatei kleiner bei copy mittels rdbuf]]></title><description><![CDATA[<p>Hallo, ich möchte ein Datei kopieren und wollte dies rdbuf machen.<br />
Wärend die Quelldatei rund 14k groß ist, ist die Zieldatei nur 1k groß.</p>
<p>hier mein Code:</p>
<pre><code>#include &lt;fstream&gt;

int main()
{
  std::ofstream ziel(&quot;ziel.xls&quot;);
  std::ifstream quelle(&quot;quelle.xls&quot;);
  ziel &lt;&lt; quelle.rdbuf();

  return 0;
}
</code></pre>
<p>Sollte doch eigentlich funktionieren? Weiß jemand was ich falsch mache oder woran es liegen könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/334752/zeildatei-kleiner-bei-copy-mittels-rdbuf</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 11:45:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/334752.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Oct 2015 19:34:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zeildatei kleiner bei copy mittels rdbuf on Wed, 07 Oct 2015 19:34:08 GMT]]></title><description><![CDATA[<p>Hallo, ich möchte ein Datei kopieren und wollte dies rdbuf machen.<br />
Wärend die Quelldatei rund 14k groß ist, ist die Zieldatei nur 1k groß.</p>
<p>hier mein Code:</p>
<pre><code>#include &lt;fstream&gt;

int main()
{
  std::ofstream ziel(&quot;ziel.xls&quot;);
  std::ifstream quelle(&quot;quelle.xls&quot;);
  ziel &lt;&lt; quelle.rdbuf();

  return 0;
}
</code></pre>
<p>Sollte doch eigentlich funktionieren? Weiß jemand was ich falsch mache oder woran es liegen könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2470321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2470321</guid><dc:creator><![CDATA[hans++]]></dc:creator><pubDate>Wed, 07 Oct 2015 19:34:08 GMT</pubDate></item><item><title><![CDATA[Reply to zeildatei kleiner bei copy mittels rdbuf on Wed, 07 Oct 2015 19:50:08 GMT]]></title><description><![CDATA[<p>Vielleicht mal im binärmodus öffnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2470323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2470323</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Wed, 07 Oct 2015 19:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to zeildatei kleiner bei copy mittels rdbuf on Wed, 07 Oct 2015 20:01:33 GMT]]></title><description><![CDATA[<p>Hätte ich ja auch mal drauf kommen können. Es funktioniert. Hatte schon so eine Vermutung es könnten an irgendwelchen Steuerzeichen in den xls dateien liegen.</p>
<p>DANKE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2470324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2470324</guid><dc:creator><![CDATA[hans++]]></dc:creator><pubDate>Wed, 07 Oct 2015 20:01:33 GMT</pubDate></item></channel></rss>