<?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[Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert???]]></title><description><![CDATA[<p>Hallo!</p>
<p>Folgendes Problem:</p>
<p>Ich will ein Passwort in mein Programm einbauen, dass aber irgendwoanders in einer datei steht.das programm soll das passwort auch anzeigen, damit man nachher die möglichkeit hat, es manuell einzugeben (datei MUSS dennoch existieren)<br />
jetzt ist die frage: wie mache ich das? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
schon mal danke für jede hilfe<br />
martinustreveri</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/225871/programm-ausführen-wenn-bestimmte-datei-mit-inhalt-quot-xxx-quot-existiert</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 02:57:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/225871.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Oct 2008 09:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Sun, 26 Oct 2008 09:37:03 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Folgendes Problem:</p>
<p>Ich will ein Passwort in mein Programm einbauen, dass aber irgendwoanders in einer datei steht.das programm soll das passwort auch anzeigen, damit man nachher die möglichkeit hat, es manuell einzugeben (datei MUSS dennoch existieren)<br />
jetzt ist die frage: wie mache ich das? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
schon mal danke für jede hilfe<br />
martinustreveri</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1604973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1604973</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Sun, 26 Oct 2008 09:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Sun, 26 Oct 2008 09:44:52 GMT]]></title><description><![CDATA[<p>Du öffnest die Datei (mit std::fstream) und guckst nach dem PW.<br />
Wenn beim Öffnen der Datei ein Fehler auftaucht oder das PW nicht drinsteht hat der User halt pech gehabt.</p>
<p><a href="http://www.cplusplus.com/reference/iostream/fstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/fstream/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1604977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1604977</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Sun, 26 Oct 2008 09:44:52 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Mon, 27 Oct 2008 17:22:50 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>Du öffnest die Datei (mit std::fstream) und guckst nach dem PW.<br />
Wenn beim Öffnen der Datei ein Fehler auftaucht oder das PW nicht drinsteht hat der User halt pech gehabt.</p>
<p><a href="http://www.cplusplus.com/reference/iostream/fstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/fstream/</a></p>
</blockquote>
<p>hö?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1605663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1605663</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Mon, 27 Oct 2008 17:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Tue, 28 Oct 2008 07:57:54 GMT]]></title><description><![CDATA[<p>martinustreveri schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<p>Du öffnest die Datei (mit std::fstream) und guckst nach dem PW.<br />
Wenn beim Öffnen der Datei ein Fehler auftaucht oder das PW nicht drinsteht hat der User halt pech gehabt.</p>
<p><a href="http://www.cplusplus.com/reference/iostream/fstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/fstream/</a></p>
</blockquote>
<p>hö?</p>
</blockquote>
<p>Was verstehst du denn da nicht?<br />
Probier einfach einen Stream mit einer Datei zu erstellen, die du erwartest. Wenn sie nicht da ist, wird die Datei erstellt.</p>
<p>btw:<br />
Hast du überhaupt mal mit filestreams gearbeitet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1605890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1605890</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Tue, 28 Oct 2008 07:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Tue, 28 Oct 2008 08:08:23 GMT]]></title><description><![CDATA[<p>Willst Du nun den kompletten Code haben, oder was? Sind doch nicht mal 5 Zeilen...</p>
<pre><code class="language-cpp">string Dateiname = &quot;/etc/irgeneinMist.txt&quot;;
dat_ein.open(Dateiname.c_str(), ios_base::in);
if(!dat_ein) {cout &lt;&lt; &quot;geht nicht&quot; &lt;&lt; endl;}
</code></pre>
<p>Wie nun die Daten auslesen kannst, musst Du durch ein wenig Initiative und google selbst herausfinden...</p>
<p>Ivo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1605895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1605895</guid><dc:creator><![CDATA[Ivo]]></dc:creator><pubDate>Tue, 28 Oct 2008 08:08:23 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Tue, 28 Oct 2008 17:46:55 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>martinustreveri schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<p>Du öffnest die Datei (mit std::fstream) und guckst nach dem PW.<br />
Wenn beim Öffnen der Datei ein Fehler auftaucht oder das PW nicht drinsteht hat der User halt pech gehabt.</p>
<p><a href="http://www.cplusplus.com/reference/iostream/fstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/fstream/</a></p>
</blockquote>
<p>hö?</p>
</blockquote>
<p>Was verstehst du denn da nicht?<br />
Probier einfach einen Stream mit einer Datei zu erstellen, die du erwartest. Wenn sie nicht da ist, wird die Datei erstellt.</p>
<p>btw:<br />
Hast du überhaupt mal mit filestreams gearbeitet?</p>
</blockquote>
<p>ja, habe ich.<br />
und: ich versteh nicht, wie ich den inhalt der datei<br />
lesen/verwenden kann?!?<br />
wenn ich ja die datei habe. (oder ja auch nicht)<br />
dann kann ich sie ja bearbeiten oder<br />
lesen. aber wie kann ich den rest machen?!?<br />
ich google jetzzt erstmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606207</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606207</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Tue, 28 Oct 2008 17:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Tue, 28 Oct 2008 17:52:25 GMT]]></title><description><![CDATA[<p>ich hätte ne lösung, dafür muss ich aber<br />
den inhalt der datei in einen string/char einfügen (Dev-Cpp kann sowas we strings ja xD,weis net ob andere) und dann überprüfen<br />
wenn ich noch herausfinde wie, dann binich froh <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/1606214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606214</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Tue, 28 Oct 2008 17:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Tue, 28 Oct 2008 22:19:17 GMT]]></title><description><![CDATA[<p>sollte in der Literatur deiner Wahl stehen, wie man strings vergleicht bzw. nach Teilstrings guckt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606324</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 28 Oct 2008 22:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 03:34:37 GMT]]></title><description><![CDATA[<p>Gerade wollte ich die Loesung posten, aber such noch ein wenig...<br />
Der Weg zur Erleuchtung sollte nicht zu einfach sein <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>Ivo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606348</guid><dc:creator><![CDATA[Ivo]]></dc:creator><pubDate>Wed, 29 Oct 2008 03:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 05:29:04 GMT]]></title><description><![CDATA[<p>martinustreveri schrieb:</p>
<blockquote>
<p>ich hätte ne lösung, dafür muss ich aber<br />
den inhalt der datei in einen string/char einfügen (Dev-Cpp kann sowas we strings ja xD,weis net ob andere) und dann überprüfen<br />
wenn ich noch herausfinde wie, dann binich froh <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>
</blockquote>
<p>Was heisst hier der DevCPP kann sowas? std::string ist ein Teil des C++-Standards und kommt nicht von deiner veralteten IDE, die ich btw wegwerfen würde und was gescheites benutzen würde wie Code::Blocks oder MSVC2008Express etc.<br />
Und wahrscheinlich noch den alten 2.95 GCC dabei.....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606351</guid><dc:creator><![CDATA[_noobbasher]]></dc:creator><pubDate>Wed, 29 Oct 2008 05:29:04 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 08:37:15 GMT]]></title><description><![CDATA[<p>martinustreveri schrieb:</p>
<blockquote>
<p>ich hätte ne lösung, dafür muss ich aber<br />
den inhalt der datei in einen string/char einfügen (Dev-Cpp kann sowas we strings ja xD,weis net ob andere) und dann überprüfen<br />
wenn ich noch herausfinde wie, dann binich froh <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>
</blockquote>
<p>Schau mal auf:<br />
<a href="http://www.cplusplus.com/" rel="nofollow">http://www.cplusplus.com/</a></p>
<p>vorbei. Da steht so ziemlich alles, was du wissen musst für dein Problem.<br />
In einen std::string einlesen, überprüfen und gut-ist..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606399</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Wed, 29 Oct 2008 08:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 16:46:11 GMT]]></title><description><![CDATA[<p>ok,danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606736</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Wed, 29 Oct 2008 16:46:11 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 17:01:22 GMT]]></title><description><![CDATA[<p>hm, ich habe mich da mal umgesehen, aber nchts gefunden?!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606750</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Wed, 29 Oct 2008 17:01:22 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 17:14:22 GMT]]></title><description><![CDATA[<p>martinustreveri schrieb:</p>
<blockquote>
<p>hm, ich habe mich da mal umgesehen, aber nchts gefunden?!?</p>
</blockquote>
<p>Dann hast du dich nicht genug umgesehen... schau mal unter &quot;reference&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606754</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 29 Oct 2008 17:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Wed, 29 Oct 2008 18:55:36 GMT]]></title><description><![CDATA[<p>ok,ich gucke mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1606787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606787</guid><dc:creator><![CDATA[martinustreveri]]></dc:creator><pubDate>Wed, 29 Oct 2008 18:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Programm ausführen wenn bestimmte datei mit inhalt &amp;quot;xxx&amp;quot; existiert??? on Thu, 30 Oct 2008 08:19:13 GMT]]></title><description><![CDATA[<p>Du musst Links schauen. Da hats eine Linkbar, wo du navigieren kannst.</p>
<p>Strings:<br />
<a href="http://www.cplusplus.com/reference/string/" rel="nofollow">http://www.cplusplus.com/reference/string/</a></p>
<p>ifstream:<br />
<a href="http://www.cplusplus.com/reference/iostream/ifstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/ifstream/</a></p>
<p>Jetzt solltest du damit klar kommen. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1606983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1606983</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Thu, 30 Oct 2008 08:19:13 GMT</pubDate></item></channel></rss>