<?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[C++ text Files öffnen]]></title><description><![CDATA[<p>Hallo Zusammen</p>
<p>ich bin ein Programmieranfänger und würde gerne ein Text File erstellen und danach auch offenhalten um eingaben entgegen zu nehmen. bisher habe ich es nur geschafft Files zu erstellen diese öffneten sich aber nicht. danach würde ich gerne die Eingabe die in das Text File geschrieben wurde in eine Excel File schreiben.<br />
geht das überhaupt? und hat jemand einen tipp wie ich das anstellen soll?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/328773/c-text-files-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 07:59:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328773.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Oct 2014 13:28:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ text Files öffnen on Sun, 26 Oct 2014 13:28:51 GMT]]></title><description><![CDATA[<p>Hallo Zusammen</p>
<p>ich bin ein Programmieranfänger und würde gerne ein Text File erstellen und danach auch offenhalten um eingaben entgegen zu nehmen. bisher habe ich es nur geschafft Files zu erstellen diese öffneten sich aber nicht. danach würde ich gerne die Eingabe die in das Text File geschrieben wurde in eine Excel File schreiben.<br />
geht das überhaupt? und hat jemand einen tipp wie ich das anstellen soll?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424110</guid><dc:creator><![CDATA[copypaste]]></dc:creator><pubDate>Sun, 26 Oct 2014 13:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Sun, 26 Oct 2014 15:20:00 GMT]]></title><description><![CDATA[<p>Was verstehst du unter öffnen? Willst du das die Datei tatsächlich aufgeht, oder willst du nur per Programm etwas reinschreiben?</p>
<p>Falls du sie wirklich öffnen willst kannst du das mit der Funktion system() lösen<br />
Falls du per Code den Inhalt ändern möchtest, kannst du das mit fstream machen.</p>
<p>Das mit Excel geht bestimmt auch irgendwie, bemühe einfach mal Google <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Viele Grüße!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424136</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424136</guid><dc:creator><![CDATA[Bobface]]></dc:creator><pubDate>Sun, 26 Oct 2014 15:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 01:28:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/31726">@bobface</a>: Wenn du keinen Plan hast, dann halt bitte jetzt und in zukunft einfach die klappe. Es erspart anderen deine bescheuerten Antworten gradezubiegen und missverständnisse auszubügeln. Danke.</p>
<p>@op: Dateien lesen und schreiben kannst du mit <code>std::ifstream</code> bzw. <code>std::ofstream</code> aus <code>&lt;fstream&gt;</code> . Was du mit Excel vorhast, hat wohl niemand verstanden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424221</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Mon, 27 Oct 2014 01:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 04:05:59 GMT]]></title><description><![CDATA[<p>Zumal man (d.h. dien Programm) das Format von Exceldateien können müsste, damit die Datei nicht beschädigt wird. Und deinem Programm das xls(x)-Format beizubringen dürfte gerade für dich als Anfänger recht schwierig werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424222</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Mon, 27 Oct 2014 04:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 10:47:28 GMT]]></title><description><![CDATA[<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>Zumal man (d.h. dien Programm) das Format von Exceldateien können müsste, damit die Datei nicht beschädigt wird. Und deinem Programm das xls(x)-Format beizubringen dürfte gerade für dich als Anfänger recht schwierig werden.</p>
</blockquote>
<p>excel kann auch csv datei format...<br />
das csv dateiformat trennt nur tabellen zellen daten mit &quot;;&quot; ...<br />
erstell dir einfach mal ein csv mit excel und dann öffne das mit einem texteditor...<br />
dann siehst du das das mit ; getrennt ist...<br />
wei´ß jetzt nicht was zeilenende ist...<br />
du musst dann nur mit fstreams so eine datei bauen und diese dann DATEINAME.csv &quot;schreiben&quot; dann hast du auch ein format was excel öffnen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> ...<br />
das ist eig nicht kompliziert... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2424283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424283</guid><dc:creator><![CDATA[KleinerTipp]]></dc:creator><pubDate>Mon, 27 Oct 2014 10:47:28 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 11:28:56 GMT]]></title><description><![CDATA[<p>Nein, ich spreche auch nicht von CSV, Xml, Json, oder sowas, sondern von dem Originalen XLS(X) Format. Erklär mal nem Änfanger, dass er sein Excel Ding als CSV speichern soll und nicht als voreingestelltes Standardformat...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424290</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Mon, 27 Oct 2014 11:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 12:35:06 GMT]]></title><description><![CDATA[<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>Nein, ich spreche auch nicht von CSV, Xml, Json, oder sowas, sondern von dem Originalen XLS(X) Format. Erklär mal nem Änfanger, dass er sein Excel Ding als CSV speichern soll und nicht als voreingestelltes Standardformat...</p>
</blockquote>
<p>dachte das bekommt er vll mit hinweis/tipp hin <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="🙂"
    /> ...<br />
glaube sogar mit doppelclick auf die .csv macht excel bei standart installation das öffnen sogar automatisch <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="🙂"
    /> ...<br />
glaube es gehen sogar .txt dateien die mit &quot;;&quot; trennen... vergleich bar dem .csv format... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>joa .xls ist was ganz anderes... da hast du vollständig recht ... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2424301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424301</guid><dc:creator><![CDATA[KleinerTipp]]></dc:creator><pubDate>Mon, 27 Oct 2014 12:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 14:27:06 GMT]]></title><description><![CDATA[<p>Danke an alle für die Tipps.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8250">@Swordfish</a> mit std::ifstream bzw. std::ofstream aus &lt;fstream&gt; habe ich bisher keine Methode gefunden die mir eine Textdatei öffnet im Sinne eines Eingabefensters.<br />
Mein Ziel ist Programm starten-&gt; Text-File erscheint-&gt;Namen in Textdatei schreiben-&gt; enter drücken-&gt; Excel-File öffnet sich mit zuvor eingegebenen Namen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424323</guid><dc:creator><![CDATA[copypaste]]></dc:creator><pubDate>Mon, 27 Oct 2014 14:27:06 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Mon, 27 Oct 2014 19:08:45 GMT]]></title><description><![CDATA[<p>Ist das mit der Textdatei unbedingt nötig? Wenn nicht kannst du den Name auch einfach mit cin einlesen.</p>
<p>Und was meinst du mit &quot;Excel-File öffnet sich mit zuvor eingegebenen Namen&quot;?</p>
<p>PS:</p>
<p>Swordfish schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/31726">@bobface</a>: Wenn du keinen Plan hast, dann halt bitte jetzt und in zukunft einfach die klappe. Es erspart anderen deine bescheuerten Antworten gradezubiegen und missverständnisse auszubügeln. Danke.</p>
<p>@op: Dateien lesen und schreiben kannst du mit <code>std::ifstream</code> bzw. <code>std::ofstream</code> aus <code>&lt;fstream&gt;</code> . Was du mit Excel vorhast, hat wohl niemand verstanden.</p>
</blockquote>
<p>Wärst du so nett mir zu erklären was ein meiner Antwort so grottenschlecht war?<br />
Sein Problem mit Excel hab ich so verstanden, dass er in einer Excel-Datei rumschreiben will, wofür sich wahrscheinlich am besten eine fertige Library eignet, welche man tonnenweise per Google findet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424382</guid><dc:creator><![CDATA[Bobface]]></dc:creator><pubDate>Mon, 27 Oct 2014 19:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 02:54:57 GMT]]></title><description><![CDATA[<p>Bobface schrieb:</p>
<blockquote>
<p>Wärst du so nett mir zu erklären was ein meiner Antwort so grottenschlecht war?</p>
</blockquote>
<p>Weiß nicht. Such dir was aus:</p>
<p>Bobface schrieb:</p>
<blockquote>
<p>Was verstehst du unter öffnen? Willst du das die Datei tatsächlich aufgeht, oder willst du nur per Programm etwas reinschreiben?</p>
</blockquote>
<p>Meine existierende Datei namens <code>file</code> im Arbeitsverzeichnis des Programms geht Leserechte des Benutzers darauf der das Programm ausführt mit</p>
<pre><code class="language-cpp">std::ifstream is{ &quot;file&quot; };
</code></pre>
<p>gaaanz toll auf.</p>
<p>Bobface schrieb:</p>
<blockquote>
<p>Falls du sie wirklich öffnen willst kannst du das mit der Funktion system() lösen</p>
</blockquote>
<p>Daß <code>system()</code> für so ziemlich alles die bescheidenste Lösung ist, kannst du sonstwo nachlesen.</p>
<p>Bobface schrieb:</p>
<blockquote>
<p>Falls du per Code den Inhalt ändern möchtest, kannst du das mit fstream machen.</p>
</blockquote>
<p>Damit kannst auslesen, seeken und schreiben. <em>Ändern</em>? Zeig mal.</p>
<p>Bobface schrieb:</p>
<blockquote>
<p>Das mit Excel geht bestimmt auch irgendwie, bemühe einfach mal Google <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>Wenn der op dazu in der Lage wäre, hätte er das bestimmt getan.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424445</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 28 Oct 2014 02:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 03:08:50 GMT]]></title><description><![CDATA[<p>Hier ist doch anscheinend das Problem, dass der Threadersteller unter &quot;Öffnen&quot; so etwas versteht wie &quot;Das was passiert wenn ich in Windows auf eine Datei doppelklicke&quot; und nicht das, was der Programmierer unter &quot;Öffnen&quot; einer Datei versteht. Ein paar Leute scheinen das nicht bemerkt zu haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424450</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 28 Oct 2014 03:08:50 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 03:28:17 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>[...] Ein paar Leute scheinen das nicht bemerkt zu haben.</p>
</blockquote>
<p>Schonschon. Aber ich hab' mir leider (?) angewohnt, so auf Fragen zu antworten, wie sie gestellt sind. Wir sind hier bei ISO-C++ - wie soll das also anders zu interpretieren sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424451</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 28 Oct 2014 03:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 03:41:41 GMT]]></title><description><![CDATA[<p>Swordfish schrieb:</p>
<blockquote>
<p>Wir sind hier bei ISO-C++ - wie soll das also anders zu interpretieren sein?</p>
</blockquote>
<p>Das ist eben die Kunst, zu erkennen, wenn der Gegenüber nicht den gleichen Hintergrund hat, wie man selbst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424452</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 28 Oct 2014 03:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 03:43:02 GMT]]></title><description><![CDATA[<p>Da gehts nicht um erkennen <em>können</em>, sondern um erkennen <em>wollen</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424453</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 28 Oct 2014 03:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 03:53:49 GMT]]></title><description><![CDATA[<p>Swordfish schrieb:</p>
<blockquote>
<p>Da gehts nicht um erkennen <em>können</em>, sondern um erkennen <em>wollen</em>.</p>
</blockquote>
<p>Das heißt, du gibst absichtlich schlechte Antworten, weil dir dein Gegenüber zu dumm<sup>*</sup> ist? Ja, ich weiß, das kann manchmal erfrischend sein, aber wäre es nicht insgesamt ein besseres Gefühl, jemandem etwas zu erklären, was er nicht weiß, anstatt ihm unter die Nase zu reiben, <em>dass</em> er etwas nicht weiß?</p>
<p><sup>*</sup>: Oder eher, wie schon gesagt, weil dein Gegenüber einen anderen Hintergrund hat. Viele Leute verwechseln dies aber mit &quot;dumm&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424454</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 28 Oct 2014 03:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 04:22:20 GMT]]></title><description><![CDATA[<p>Ich hab' halt die Hoffnung, daß solche Fragesteller mit der Zeit die Art und Weise zu Fragen überdenken bzw. wenigstens checken, wie schwammig sie sich ausdrücken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424455</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Tue, 28 Oct 2014 04:22:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ text Files öffnen on Tue, 28 Oct 2014 07:41:14 GMT]]></title><description><![CDATA[<p>Swordfish schrieb:</p>
<blockquote>
<p>Ich hab' halt die Hoffnung, daß solche Fragesteller mit der Zeit die Art und Weise zu Fragen überdenken bzw. wenigstens checken, wie schwammig sie sich ausdrücken.</p>
</blockquote>
<p>Gehe mal in Windows in den Explorer und klicke mit der rechten Maustaste auf eine beliebige Datei. Dort steht &quot;öffnen&quot;. Und öffnen bedeutet hier für und C++-Programmierer &quot;ausführen&quot;. Willst Du dann einem Anfänger vorwerfen, wenn er die Begriffe verwendet, die ihm angeboten werden? Ich denke es ist fair, das zu erkennen und erst mal Begriffe zu erklären. Es absichtlich falsch zu verstehen ist überheblich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2424466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2424466</guid><dc:creator><![CDATA[tntnet]]></dc:creator><pubDate>Tue, 28 Oct 2014 07:41:14 GMT</pubDate></item></channel></rss>