<?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[std::fstream: Systemvariablen in die Pfadangabe setzen?]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann man durch eine spezielle Einstellung <code>std::ifstream</code> bzw. <code>std::ofstream</code> mit Pfadangaben füttern, die Windows-Systemvariablen enthalten? Also z.B. <code>%windir%/blub.txt</code> ? Mit dieser Methode wird der Pfad leider nicht gefunden... gibt es auf diese Weise irgendeine Möglichkeit, das elegant über <code>std::ifstream</code> zu lösen, oder muss ich unbedingt OS-spezifische Funktionen aufrufen, um die Werte der Systemvariablen zu ermitteln?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223990/std-fstream-systemvariablen-in-die-pfadangabe-setzen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 03 Oct 2026 12:18:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223990.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Oct 2008 19:35:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std::fstream: Systemvariablen in die Pfadangabe setzen? on Fri, 03 Oct 2008 19:35:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann man durch eine spezielle Einstellung <code>std::ifstream</code> bzw. <code>std::ofstream</code> mit Pfadangaben füttern, die Windows-Systemvariablen enthalten? Also z.B. <code>%windir%/blub.txt</code> ? Mit dieser Methode wird der Pfad leider nicht gefunden... gibt es auf diese Weise irgendeine Möglichkeit, das elegant über <code>std::ifstream</code> zu lösen, oder muss ich unbedingt OS-spezifische Funktionen aufrufen, um die Werte der Systemvariablen zu ermitteln?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1593129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1593129</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Fri, 03 Oct 2008 19:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to std::fstream: Systemvariablen in die Pfadangabe setzen? on Fri, 03 Oct 2008 21:45:51 GMT]]></title><description><![CDATA[<p>Meinst du so etwas wie getenv() ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1593149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1593149</guid><dc:creator><![CDATA[Speedy_92]]></dc:creator><pubDate>Fri, 03 Oct 2008 21:45:51 GMT</pubDate></item><item><title><![CDATA[Reply to std::fstream: Systemvariablen in die Pfadangabe setzen? on Fri, 03 Oct 2008 21:51:50 GMT]]></title><description><![CDATA[<p>Jaa, das ist die Lösung die ich suche <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="🙂"
    /> Danke Dir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1593151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1593151</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Fri, 03 Oct 2008 21:51:50 GMT</pubDate></item></channel></rss>