<?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[array speichern und wieder laden]]></title><description><![CDATA[<p>Hi gibt es eine möglichkeit einfach ein Array Integer oder String mit sowas wie SaveToFile zu speichern und auch wieder mit LoadFromFile zu öffnen???<br />
Gibt es dazu FAQs bzw Tutorials???</p>
<p>MfG Straightflush</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/137825/array-speichern-und-wieder-laden</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 09:20:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/137825.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Feb 2006 07:47:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 07:47:12 GMT]]></title><description><![CDATA[<p>Hi gibt es eine möglichkeit einfach ein Array Integer oder String mit sowas wie SaveToFile zu speichern und auch wieder mit LoadFromFile zu öffnen???<br />
Gibt es dazu FAQs bzw Tutorials???</p>
<p>MfG Straightflush</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999073</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 07:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 07:51:18 GMT]]></title><description><![CDATA[<p>TStringList bietet SaveToFile und LoadFromFile</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999079</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Tue, 21 Feb 2006 07:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:04:10 GMT]]></title><description><![CDATA[<p>ich weiß aber was mach ich wenn ich nen 2-dimensionales array mit interger werten speichern will???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999519</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:28:46 GMT]]></title><description><![CDATA[<p>- eine Eigene Speicher routine schreiben (zB mit TStream)<br />
- in das StringList schreiben und eine Dismension mit &quot;;&quot; trennen zB(&quot;12;345;3455;&quot;)<br />
- TStringGrid verwenden</p>
<p>etc...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999520</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:28:46 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:14:26 GMT]]></title><description><![CDATA[<blockquote>
<p>ich weiß aber was mach ich wenn ich nen 2-dimensionales array mit interger werten speichern will???</p>
</blockquote>
<p>Eindeutig fragen:</p>
<blockquote>
<p>ein Array Integer oder String mit sowas wie SaveToFile</p>
</blockquote>
<p>Int, Array, String, sowas, wie, könnte, also, denn...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999528</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:14:26 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:23:14 GMT]]></title><description><![CDATA[<p>TStringList kennt doch jeder</p>
<p>Aber ich will was wie</p>
<pre><code class="language-cpp">int Array[10][10];

Array-&gt;SaveToFile(DateiName):
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/999537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999537</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:30:19 GMT]]></title><description><![CDATA[<p>Dan wirf die Hilfe an, und liess mal nach TStream nach</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999542</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:30:19 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:40:45 GMT]]></title><description><![CDATA[<blockquote>
<p>TStringList kennt doch jeder</p>
</blockquote>
<p>Daten wegschreiben kann doch jeder.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999550</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:41:53 GMT]]></title><description><![CDATA[<p>hat da jemand nen beispiel oder nen tutorial für weil ich hab keine ahnung wie ich des auf nen array anwenden soll</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999551</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:42:58 GMT]]></title><description><![CDATA[<p>Christian211 schrieb:</p>
<blockquote>
<blockquote>
<p>TStringList kennt doch jeder</p>
</blockquote>
<p>Daten wegschreiben kann doch jeder.</p>
</blockquote>
<p>garnich wahr *heul*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999554</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:52:16 GMT]]></title><description><![CDATA[<p>Du hättest mal TStream hier in der Suche eingeben können:</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-108869-and-view-is-previous.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-108869-and-view-is-previous.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/999565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999565</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:52:16 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:56:57 GMT]]></title><description><![CDATA[<p>Ich würde hier lieber die C++Standardstreams verwenden. Eine kurze Anleitung gibt es z.Bsp. hier <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39469.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39469.html</a><br />
Ein Array mußt du halt in einer Schleife rausschreiben, dabei aber die Arraygröße nicht vergessen. Zwischen den einzelnen Zahlen noch Trennzeichen einfügen (z.Bsp. Leerzeichen).<br />
rausschreiben etwa so</p>
<pre><code class="language-cpp">int xsize(10), ysize(10);
ofstream out(&quot;array.txt&quot;);  //Ausgabestream auf Datein erzeugen
out &lt;&lt; xsize &lt;&lt; &quot; &quot; &lt;&lt; ysize &lt;&lt; &quot;\n&quot;;  //Größen rausschreiben
// Array rausschreiben
for( int i=0; i&lt;xsize; ++i)
  for( int j=0; j&lt;ysize; ++j)
    out &lt;&lt; Array[i][j] &lt;&lt; &quot; &quot;;
out.close();
</code></pre>
<p>einlesen etwa so</p>
<pre><code class="language-cpp">ifstream in(&quot;array.txt&quot;);
in &gt;&gt; xsize &gt;&gt; ysize;
// Array evtl. noch erzeugen
for( int i=0; i&lt;xsize; ++i)
  for( int j=0; j&lt;ysize; ++j)
    in &gt;&gt; Array[i][j];
</code></pre>
<p>Tests auf Arraygrenzen, dynamisches Erzeugen des Arrays, Tests auf Dateiende etc. bei Bedarf einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999568</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:56:57 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 16:58:16 GMT]]></title><description><![CDATA[<p>binär wäre mir aber lieber...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999575</guid><dc:creator><![CDATA[Straightflush]]></dc:creator><pubDate>Tue, 21 Feb 2006 16:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to array speichern und wieder laden on Tue, 21 Feb 2006 17:22:10 GMT]]></title><description><![CDATA[<p>Warum?<br />
Aber wenn du willst. Hier kannst du dann auf die Trennzeichen verzichten. Zu Lesen und Schreiben nimmt man dann read/write. Das steht aber auch im geposteten Link aus der C++FAQ.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/999592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/999592</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 21 Feb 2006 17:22:10 GMT</pubDate></item></channel></rss>