<?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[Öffnen einer Datei]]></title><description><![CDATA[<p>Ich habe ein Text-Datei mir folgendem Inhalt:</p>
<blockquote>
<p>[FileReadable], test, blub</p>
</blockquote>
<p>Diese will ich öffnen und dann auf meinen Vektor legen, allerdings soll der Dateiinhalt auf 3 Strings aufgeteilt werden. Das ist bisher mein Code, aber irgendwas klappt da nicht und ich komm nicht drauf. Bitte helft mir!</p>
<pre><code class="language-cpp">Test Arbeitsfenster::oeffnen() {
     Test t(fileExists, &quot;---&quot;, &quot;---&quot;);
     const char* dateiname = file_chooser(&quot;Datei auswählen&quot;, &quot;*&quot;, &quot;*.ts&quot;, 0);
     ifstream datei;
     datei.open(dateiname, ios::in);
     string testart, testobjekt, testparameter;
     const string s;
     string line;
     istringstream is(s);
     getline(datei,line);
     while (!datei.eof()) {
         is.str(line);
         getline(is,testart,',');
         getline(is,testobjekt,',');
         getline(is,testparameter);  

         tests.push_back(t);
         arbeitsbereich-&gt;add(); // Hier weiß ich nicht, was ich bei add                                                            
                                // übergeben muss.
     }
     datei.close();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/160714/öffnen-einer-datei</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 15:33:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160714.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Sep 2006 16:37:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Öffnen einer Datei on Thu, 28 Sep 2006 16:37:00 GMT]]></title><description><![CDATA[<p>Ich habe ein Text-Datei mir folgendem Inhalt:</p>
<blockquote>
<p>[FileReadable], test, blub</p>
</blockquote>
<p>Diese will ich öffnen und dann auf meinen Vektor legen, allerdings soll der Dateiinhalt auf 3 Strings aufgeteilt werden. Das ist bisher mein Code, aber irgendwas klappt da nicht und ich komm nicht drauf. Bitte helft mir!</p>
<pre><code class="language-cpp">Test Arbeitsfenster::oeffnen() {
     Test t(fileExists, &quot;---&quot;, &quot;---&quot;);
     const char* dateiname = file_chooser(&quot;Datei auswählen&quot;, &quot;*&quot;, &quot;*.ts&quot;, 0);
     ifstream datei;
     datei.open(dateiname, ios::in);
     string testart, testobjekt, testparameter;
     const string s;
     string line;
     istringstream is(s);
     getline(datei,line);
     while (!datei.eof()) {
         is.str(line);
         getline(is,testart,',');
         getline(is,testobjekt,',');
         getline(is,testparameter);  

         tests.push_back(t);
         arbeitsbereich-&gt;add(); // Hier weiß ich nicht, was ich bei add                                                            
                                // übergeben muss.
     }
     datei.close();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1146065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1146065</guid><dc:creator><![CDATA[Roadda]]></dc:creator><pubDate>Thu, 28 Sep 2006 16:37:00 GMT</pubDate></item></channel></rss>