<?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[Wie kann ich 2 dateien erstellen?]]></title><description><![CDATA[<p>Hallo<br />
Ich verzweifle bald an einem kleinen Problem<br />
Ich will ein Programm schreiben was 2 text datein erstellen soll<br />
Der code sieht dazu so aus:</p>
<p>ofstream File(&quot;test1.txt&quot;);<br />
cout.rdbuf(File.rdbuf());<br />
ofstream File(&quot;test2.txt&quot;);<br />
cout.rdbuf(File.rdbuf());</p>
<p>Das Problem ist aber das nur die erste Textdatei erstellt wird<br />
Muss ich da iergednwas hinzufügen oder brauch ich einen anderen code zum erstellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157225/wie-kann-ich-2-dateien-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 23:45:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157225.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Aug 2006 23:31:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie kann ich 2 dateien erstellen? on Wed, 23 Aug 2006 23:31:58 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ich verzweifle bald an einem kleinen Problem<br />
Ich will ein Programm schreiben was 2 text datein erstellen soll<br />
Der code sieht dazu so aus:</p>
<p>ofstream File(&quot;test1.txt&quot;);<br />
cout.rdbuf(File.rdbuf());<br />
ofstream File(&quot;test2.txt&quot;);<br />
cout.rdbuf(File.rdbuf());</p>
<p>Das Problem ist aber das nur die erste Textdatei erstellt wird<br />
Muss ich da iergednwas hinzufügen oder brauch ich einen anderen code zum erstellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123315</guid><dc:creator><![CDATA[.......]]></dc:creator><pubDate>Wed, 23 Aug 2006 23:31:58 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann ich 2 dateien erstellen? on Thu, 24 Aug 2006 00:04:53 GMT]]></title><description><![CDATA[<p>Also das ist glaub ich C++ was du das schreibst. Da wir im WinAPI Forum sind, gebe ich dir Hilfestellung mit WinAPI.<br />
Siehe dazu <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createfile.asp" rel="nofollow">CreateFile</a>. Sieh dir auch die weiteführenden links an. ReadFile, OpenFile, WriteFile usw.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123319</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 24 Aug 2006 00:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann ich 2 dateien erstellen? on Thu, 24 Aug 2006 01:22:02 GMT]]></title><description><![CDATA[<p>oder das ganze mit fopen:</p>
<pre><code class="language-cpp">FILE *file = fopen(&quot;pfad&quot;,&quot;w&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1123330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123330</guid><dc:creator><![CDATA[Kuldren]]></dc:creator><pubDate>Thu, 24 Aug 2006 01:22:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann ich 2 dateien erstellen? on Thu, 24 Aug 2006 08:46:17 GMT]]></title><description><![CDATA[<p>oder das ganze mit Standart C++</p>
<pre><code class="language-cpp">ofstream File(&quot;test1.txt&quot;, ios::out);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1123444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123444</guid><dc:creator><![CDATA[tobZel]]></dc:creator><pubDate>Thu, 24 Aug 2006 08:46:17 GMT</pubDate></item></channel></rss>