<?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[text datei wird manchmal erstellt manchmal nicht]]></title><description><![CDATA[<p>Manchmal wird vor dem einschreiben in meinen scripts die txt Datei erstellt und manchmal nicht. Ich kann jedoch keine script unterschiede entdecken.<br />
kann man in dem falle, das sie nicht existiert und nicht erstellt wird warum auch immer eine Zeile hinzufügen, die die Datei erstellt wär sehr wichtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/240546/text-datei-wird-manchmal-erstellt-manchmal-nicht</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 16:50:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/240546.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 May 2009 18:54:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Thu, 07 May 2009 18:54:30 GMT]]></title><description><![CDATA[<p>Manchmal wird vor dem einschreiben in meinen scripts die txt Datei erstellt und manchmal nicht. Ich kann jedoch keine script unterschiede entdecken.<br />
kann man in dem falle, das sie nicht existiert und nicht erstellt wird warum auch immer eine Zeile hinzufügen, die die Datei erstellt wär sehr wichtig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1707413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1707413</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Thu, 07 May 2009 18:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Thu, 07 May 2009 18:57:11 GMT]]></title><description><![CDATA[<p>Arbeitest du mit <code>std::fstream</code> ? Dann sollten die richtigen Flags dazu führen, dass die Datei erstellt wird. Etwas mehr Code wäre hilfreich, wenn möglich auf ein repräsentatives Minimalbeispiel reduziert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1707414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1707414</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 07 May 2009 18:57:11 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Fri, 08 May 2009 08:46:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">ofstream MyLogFile(&quot;C:\\meineTextDatei.txt&quot;, ios::out|ios::app);
if (MyLogFile.is_open())
{
     MyLogFile.close();
}
</code></pre>
<p>Da ich davon ausgehe das du es mit &quot;fstream&quot; machst sollte das deine Frage beantworten!</p>
<p>Aber vielleicht schreibst du das nächste mal ein bisschen mehr zu deiner Frage!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1707569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1707569</guid><dc:creator><![CDATA[squirrel]]></dc:creator><pubDate>Fri, 08 May 2009 08:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Fri, 08 May 2009 15:47:20 GMT]]></title><description><![CDATA[<p>ja klar wenig infos, hatte kaum noch zeit also ja arbeite mit ofstream: (wie denn sonst mit system ???)</p>
<p>so ein beispiel, bei dem es NICHT erstellt wird:</p>
<pre><code class="language-cpp">file.open(path.c_str());
            if(file)
            {
                        saver = 0;
                        for(;fr&lt;=26;)
                        {
                        fr = fr + 1;
                        saver = saver + 1;             
                        text += lettersaver[saver] + &quot;\n&quot;;

                        }                   
                        file &lt;&lt; text;
                        file.close();
            }
            else
            {
                        cout &lt;&lt; &quot;Datei Fehler!&quot;;
                        gut = 0;
            }
</code></pre>
<p>so mache ich es ungf immer, geht auch aber er erstellt nicht soll ich es jetzt so machen wie squirrel sagt ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1707848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1707848</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Fri, 08 May 2009 15:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Fri, 08 May 2009 23:27:45 GMT]]></title><description><![CDATA[<p>[cpp]<br />
#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
using namespace std;</p>
<p>int main()<br />
{</p>
<p>ofstream datei(&quot;test,txt&quot;); // datei erstellen<br />
datei&lt;&lt;&quot;hallo&quot;; // text in die datei schreiben<br />
datei.close();</p>
<p>return 0;<br />
}</p>
<p>[/cpp}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1708000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1708000</guid><dc:creator><![CDATA[bup]]></dc:creator><pubDate>Fri, 08 May 2009 23:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Sun, 17 May 2009 12:31:31 GMT]]></title><description><![CDATA[<p>eben grade ist mir aufgefallen, dass icgh in dem prog, in dem die txt nicht erstellt wurde, dass so geschrieben war:</p>
<pre><code class="language-cpp">fstream file;
</code></pre>
<p>das geht ? wusste ich nicht, er hatte es auf jeden Fall compiliert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1711735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1711735</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Sun, 17 May 2009 12:31:31 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Sun, 17 May 2009 13:21:50 GMT]]></title><description><![CDATA[<p>Was soll daran nicht gehen? Achja Tim, gewöhn dir endlich eine ordentliche Formatierung hier im Forum an, meinetwegen Code in so einer räudigen Formatierung privat, aber hier Forum bitte an den Standard halten, das liest sonst keiner.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1711746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1711746</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Sun, 17 May 2009 13:21:50 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Sun, 17 May 2009 13:15:11 GMT]]></title><description><![CDATA[<p>Firefighter schrieb:</p>
<blockquote>
<p>Was soll daran nicht gehen? Achja Tim, gewöhn dir endlich eine ordentliche Formatierung hier im Forum an, meinetwegen Code in so einer reudigen Formatierung privat, aber hier Forum bitte an den Standard halten, das liest sonst keiner.</p>
</blockquote>
<p><a href="http://de.wiktionary.org/wiki/r%C3%A4udig" rel="nofollow">http://de.wiktionary.org/wiki/räudig</a><br />
<a href="http://wortschatz.uni-leipzig.de/cgi-bin/wort_www.exe?site=1&amp;Wort=r%E4udig" rel="nofollow">http://wortschatz.uni-leipzig.de/cgi-bin/wort_www.exe?site=1&amp;Wort=r�udig</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1711747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1711747</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 17 May 2009 13:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to text datei wird manchmal erstellt manchmal nicht on Sun, 17 May 2009 13:21:38 GMT]]></title><description><![CDATA[<p>Danke volkard für die Verbesserung, auch wenn der Post nicht zu Thema beitrug <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>Edit: ich verbessere es.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1711751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1711751</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Sun, 17 May 2009 13:21:38 GMT</pubDate></item></channel></rss>