<?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[Datei erstellen per KonsolenProgramm]]></title><description><![CDATA[<p>Hallo, ich bin noch nicht so weit in der C++ Programmierung,und würde gerne den Quellcode wissen für ein einfaches Programm, das ich Öffne, es mich Fragt wie die Datei heißen soll, und dann diese Datei in dem Verzeichnis erstellt wo die exe des C++ Programms ist. Am besten ein Konsolenprogramm.</p>
<p>Beispiel: Ich führe das Programm aus, die cmd öffnet sich und fragt mich, wie die datei heißen soll (inklusive Dateiendung), ich gebe an &quot; Test.java&quot; oder &quot;123.txt&quot; und es erstellt mir die blanco Datei...</p>
<p>Hoffe ihr könnt mir helfen ..</p>
<p>MfG Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/293516/datei-erstellen-per-konsolenprogramm</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 06:31:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/293516.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2011 19:50:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 19:50:27 GMT]]></title><description><![CDATA[<p>Hallo, ich bin noch nicht so weit in der C++ Programmierung,und würde gerne den Quellcode wissen für ein einfaches Programm, das ich Öffne, es mich Fragt wie die Datei heißen soll, und dann diese Datei in dem Verzeichnis erstellt wo die exe des C++ Programms ist. Am besten ein Konsolenprogramm.</p>
<p>Beispiel: Ich führe das Programm aus, die cmd öffnet sich und fragt mich, wie die datei heißen soll (inklusive Dateiendung), ich gebe an &quot; Test.java&quot; oder &quot;123.txt&quot; und es erstellt mir die blanco Datei...</p>
<p>Hoffe ihr könnt mir helfen ..</p>
<p>MfG Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127305</guid><dc:creator><![CDATA[remiinD]]></dc:creator><pubDate>Tue, 04 Oct 2011 19:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 19:53:04 GMT]]></title><description><![CDATA[<p>remiinD schrieb:</p>
<blockquote>
<p>in dem Verzeichnis erstellt wo die exe des C++ Programms ist.</p>
</blockquote>
<p>Ist das eine wichtige Bedingung? Ohne wäre es trivial. Mit dieser Bedingung ist das schwierig bis unmöglich. Jedenfalls nicht mehr mit C++-Bordmitteln machbar, das ist auf jeden Fall stark systemabhängig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127306</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 04 Oct 2011 19:53:04 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 19:55:46 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;ostream&gt;
#include &lt;string&gt;

int main()
{
    std::string filename;
    std::cin &gt;&gt; filename;

    std::ofstream os(filename);
}
</code></pre>
<p>Wo Problem?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127307</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Tue, 04 Oct 2011 19:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 19:57:44 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Wo Problem?</p>
</blockquote>
<p>Schieb die exe mal in ein anderes Verzeichnis, und ruf sie dann mit pfad_von_anderem_verzeichnis/meine_exe auf.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127308</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 04 Oct 2011 19:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 20:00:53 GMT]]></title><description><![CDATA[<p>Ne , das ist nicht das problem, wenns sein muss gehts auch das sie nicht genau da wo die exe ist erstellt werden muss...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127310</guid><dc:creator><![CDATA[remiinD]]></dc:creator><pubDate>Tue, 04 Oct 2011 20:00:53 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 20:28:36 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Wo Problem?</p>
</blockquote>
<p>getline wäre angebrachter. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127316</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127316</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Tue, 04 Oct 2011 20:28:36 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 20:31:46 GMT]]></title><description><![CDATA[<p>Leerzeichen in Dateinamen sind aber doof.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127317</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Tue, 04 Oct 2011 20:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 20:38:37 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Leerzeichen in Dateinamen sind aber doof.</p>
</blockquote>
<p>Für moderne Bestriebssystem aber nicht wirklich ein Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> (und afair schluckt der ifstream alles als Dateiname, womit dein System auch zurechtkommen würde).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127320</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 04 Oct 2011 20:38:37 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Tue, 04 Oct 2011 20:48:07 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Leerzeichen in Dateinamen sind aber doof.</p>
</blockquote>
<p>Das sollte man Windows-Benutzern mal erklären; am besten eine Textdatei in ihrem Home ablegen. Wie war das doch gleich...ah, ja: C:\Documents and Settings\Name\My Documents.</p>
<p>Hm.</p>
<p>Naja, vielleicht doch besser ein Programm installieren, das regelmäßig darauf aufmerksam macht. Wo gehören die gleich wieder hin...ah, ja: C:\Program Files.</p>
<p>Verdammt.</p>
<p>Aber mal ernsthaft: Leerzeichen in Dateinamen sind seit Jahr(zehnt)en gang und gebe - denk nur an MP3-Sammlungen oder Desktop-Shortcuts. Sich im Jahr 2011 hinzustellen und zu sagen &quot;mein Programm muss mit Leerzeichen in Dateinamen nicht umgehen können&quot; ist keine sinnvolle Einstellung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127321</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Tue, 04 Oct 2011 20:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Wed, 05 Oct 2011 13:50:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/22268">@Pi</a>:</p>
<p>Vielleicht könntest du dem User mal mitteilen, wozu dein Programm da ist.<br />
Wenn da einfach ein blinkender Cursor ist, kann ein Ahnungsloser da wenig mit Anfangen.</p>
<blockquote>
<p>Wo Problem ?</p>
</blockquote>
<p>Deutsch Problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127569</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127569</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 05 Oct 2011 13:50:34 GMT</pubDate></item><item><title><![CDATA[Reply to Datei erstellen per KonsolenProgramm on Wed, 05 Oct 2011 14:17:34 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Vielleicht könntest du dem User mal mitteilen, wozu dein Programm da ist.<br />
Wenn da einfach ein blinkender Cursor ist, kann ein Ahnungsloser da wenig mit Anfangen.</p>
</blockquote>
<p>Das ist der Unix-Stil und bewährt, dass man den User nicht mit redundanten Informationen zumüllt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2127591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2127591</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 05 Oct 2011 14:17:34 GMT</pubDate></item></channel></rss>