<?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[File in Dev-C++]]></title><description><![CDATA[<p>Hey,</p>
<p>Ich versuche für eins meiner Programme eine Highscore Liste zu erstellen .</p>
<p><a href="http://home.fhtw-berlin.de/~junghans/cref/FUNCTIONS/fopen.html" rel="nofollow">http://home.fhtw-berlin.de/~junghans/cref/FUNCTIONS/fopen.html</a></p>
<p>das habe ich dafür gefunden und möchte gerne wissen wie ich ein FILE überhaupt erstelle.<br />
Ich finde immer nur wie ich es bearbeiten kann<br />
mfg<br />
Megawurrrm :p</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/305082/file-in-dev-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 05:18:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/305082.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Jun 2012 13:55:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 13:55:26 GMT]]></title><description><![CDATA[<p>Hey,</p>
<p>Ich versuche für eins meiner Programme eine Highscore Liste zu erstellen .</p>
<p><a href="http://home.fhtw-berlin.de/~junghans/cref/FUNCTIONS/fopen.html" rel="nofollow">http://home.fhtw-berlin.de/~junghans/cref/FUNCTIONS/fopen.html</a></p>
<p>das habe ich dafür gefunden und möchte gerne wissen wie ich ein FILE überhaupt erstelle.<br />
Ich finde immer nur wie ich es bearbeiten kann<br />
mfg<br />
Megawurrrm :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225411</guid><dc:creator><![CDATA[Megawurrrm]]></dc:creator><pubDate>Wed, 20 Jun 2012 13:55:26 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 14:23:47 GMT]]></title><description><![CDATA[<p>Megawurrrm schrieb:</p>
<blockquote>
<p>Ich finde immer nur wie ich es bearbeiten kann</p>
</blockquote>
<p>Und was soll jetzt deiner Meinung nach auf der verlinkten Seite stehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225422</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 14:29:30 GMT]]></title><description><![CDATA[<p>fopen erzeugt dir, mit den richtigen Argumenten aufgerufen, ggf. das File.</p>
<p>Aber warum dieser veraltete C-Mist, wenns in C++ ifstream und ofstream gibt?</p>
<p><a href="http://www.cplusplus.com/reference/iostream/ifstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/ifstream/</a><br />
<a href="http://www.cplusplus.com/reference/iostream/ofstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/ofstream/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225426</guid><dc:creator><![CDATA[Jonas OSDever]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 14:32:58 GMT]]></title><description><![CDATA[<p>das machen wir so in der Schule <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> - ich kenne diese befehle<br />
fopen, fprintf, fgetc, fgets, fputs, fputc, fscanf, findfirst, findnext</p>
<p>ich möchte damit gerne auf eine liste zugreifen und da speichern und laden können</p>
<p>vielleicht könnt ihr einen Syntaxischen Ansatz machen damit man das ein bisschen versteht</p>
<p>mfg<br />
Megawurrrm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225428</guid><dc:creator><![CDATA[Megawurrrm]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 14:38:09 GMT]]></title><description><![CDATA[<p>Megawurrrm schrieb:</p>
<blockquote>
<p>das machen wir so in der Schule <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
</blockquote>
<p>Macht ihr C oder C mit Klassen (aka. C++ ohne alle Vorteile)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225429</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:38:09 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 14:46:51 GMT]]></title><description><![CDATA[<p>bis jetzt machen wir glaube nur C</p>
<p>mfg<br />
Megawurrrm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225431</guid><dc:creator><![CDATA[Megawurrrm]]></dc:creator><pubDate>Wed, 20 Jun 2012 14:46:51 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Wed, 20 Jun 2012 15:03:35 GMT]]></title><description><![CDATA[<p>C-Fragen bitte zukünftig auch im C-Forum stellen.</p>
<p>fopen erzeugt, wie bereits erwähnt ggf. auch Dateien. Davon steht in deiner, auf den ersten Blick leider nicht wirklich guten Referenz, nichts. Guck in Zukunft lieber gleich hier nach: <a href="http://cplusplus.com/reference/" rel="nofollow">http://cplusplus.com/reference/</a></p>
<p>Hier werden modes viel besser und detaillierter beschrieben: <a href="http://www.cplusplus.com/reference/clibrary/cstdio/fopen/" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cstdio/fopen/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225441</guid><dc:creator><![CDATA[Jonas OSDever]]></dc:creator><pubDate>Wed, 20 Jun 2012 15:03:35 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Thu, 21 Jun 2012 09:18:42 GMT]]></title><description><![CDATA[<p>WISS ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225685</guid><dc:creator><![CDATA[maniggR]]></dc:creator><pubDate>Thu, 21 Jun 2012 09:18:42 GMT</pubDate></item><item><title><![CDATA[Reply to File in Dev-C++ on Thu, 21 Jun 2012 16:03:37 GMT]]></title><description><![CDATA[<p>so ich steh immernoch auf dem schlauch aber die seite ist der hamma sehr gut danek <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>ich habe es jetzt geschaft einen Text und eine zahl in ein selbst erstelltes file zu schreiben</p>
<pre><code>#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;conio2.h&gt;
#include &lt;stdio.h&gt;
int variable;
main()
{
   FILE * textdokument;
   textdokument = fopen(&quot;text&quot;,&quot;w&quot;);
   *fprintf(textdokument,&quot;Hallo Welt!\n&quot;);
   fputs (&quot;1&quot;,textdokument);
   /***************************
   hierfür muss ich erst das oben stehende w in ein r
   umändern damit er liest und nicht schriebt
   variable = fgetc (textdokument);
   cprintf(&quot;%i&quot;,variable);*/
   getch();

   fclose (textdokument);
   return 0;
}
</code></pre>
<p>ich kann non mit notepad++ das file öffnen und meinen text sehen ich sehe auch die 1 und was nicht so schön ist ich zuaber ein NUL hinter all diese sachen - wenn ich nun versuche ein zeichen auszulesen mit fgetc dan bekomme ich immer nur das nul - ich möchte aber die 1 lesen können</p>
<p>mfg<br />
Megawurrrm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2225873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2225873</guid><dc:creator><![CDATA[Megawurrrm]]></dc:creator><pubDate>Thu, 21 Jun 2012 16:03:37 GMT</pubDate></item></channel></rss>