<?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[Feld in Textdatei schreiben]]></title><description><![CDATA[<p>Hallo Leute!<br />
Ich hab ein Problem. Ich möchte von einem Feld (unsigned long) die Werte in eine Textdatei schreiben. Ich arbeite mit printf, scanf, fopen,...<br />
Es funktioniert aber nicht. der Code sieht wie folgt aus:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;sstream.h&gt;
#include &lt;string.h&gt;

void main()
{
unsigned long zahl[255],c[255],i,j,k,e,m;
FILE *crypt;

/*
Programmcode
*/

crypt=fopen(&quot;crypt.txt&quot;,&quot;w&quot;);
for(i=0;i&lt;k;i++)
        {
        fputc(c[i],crypt);
        }
fclose(crypt);

getch();
}
</code></pre>
<p>Bitte um Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/141017/feld-in-textdatei-schreiben</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 10:00:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/141017.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Mar 2006 17:12:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Feld in Textdatei schreiben on Sat, 18 Mar 2006 17:12:50 GMT]]></title><description><![CDATA[<p>Hallo Leute!<br />
Ich hab ein Problem. Ich möchte von einem Feld (unsigned long) die Werte in eine Textdatei schreiben. Ich arbeite mit printf, scanf, fopen,...<br />
Es funktioniert aber nicht. der Code sieht wie folgt aus:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;sstream.h&gt;
#include &lt;string.h&gt;

void main()
{
unsigned long zahl[255],c[255],i,j,k,e,m;
FILE *crypt;

/*
Programmcode
*/

crypt=fopen(&quot;crypt.txt&quot;,&quot;w&quot;);
for(i=0;i&lt;k;i++)
        {
        fputc(c[i],crypt);
        }
fclose(crypt);

getch();
}
</code></pre>
<p>Bitte um Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019169</guid><dc:creator><![CDATA[astrotiger]]></dc:creator><pubDate>Sat, 18 Mar 2006 17:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to Feld in Textdatei schreiben on Sat, 18 Mar 2006 17:20:59 GMT]]></title><description><![CDATA[<p>entweder gleich C++ benutzen (d.h. fstream statt FILE) oder ins C-Forum posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019182</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019182</guid><dc:creator><![CDATA[deéè]]></dc:creator><pubDate>Sat, 18 Mar 2006 17:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Feld in Textdatei schreiben on Sat, 18 Mar 2006 17:21:28 GMT]]></title><description><![CDATA[<p>Wie groß ist k?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019184</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Mar 2006 17:21:28 GMT</pubDate></item><item><title><![CDATA[Reply to Feld in Textdatei schreiben on Sat, 18 Mar 2006 17:21:34 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>wenn du wirklich in C++ arbeiten willst, schau in die C** FAq hier im Forum, dort gibt es einen Tread <em>Dateien und Ströme</em> der das Speichern und Laden von Dateien mit C++ Mitteln erkärt.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1019185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019185</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 18 Mar 2006 17:21:34 GMT</pubDate></item></channel></rss>