<?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[Kein schreibrecht für Datei prüfen]]></title><description><![CDATA[<p>Ich habe ein Programm das in eine ini schreibt. Wenn ich es starte aus einem Netzwerkordner in dem keine schreibrechte sind, gibt es halt Fehlermeldungen das er nicht schreiben kann. Kann ich das irgendwie überprüfen ob ich überhaupt schreibrechte habe und dann ggf das schreiben in die ini deaktivieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/191406/kein-schreibrecht-für-datei-prüfen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 19:35:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/191406.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Sep 2007 20:12:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kein schreibrecht für Datei prüfen on Sun, 02 Sep 2007 20:12:04 GMT]]></title><description><![CDATA[<p>Ich habe ein Programm das in eine ini schreibt. Wenn ich es starte aus einem Netzwerkordner in dem keine schreibrechte sind, gibt es halt Fehlermeldungen das er nicht schreiben kann. Kann ich das irgendwie überprüfen ob ich überhaupt schreibrechte habe und dann ggf das schreiben in die ini deaktivieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1357498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357498</guid><dc:creator><![CDATA[schrubbel]]></dc:creator><pubDate>Sun, 02 Sep 2007 20:12:04 GMT</pubDate></item><item><title><![CDATA[Reply to Kein schreibrecht für Datei prüfen on Mon, 03 Sep 2007 06:54:31 GMT]]></title><description><![CDATA[<p>Du kannst per FileIsReadOnly() überprüfen ob die Datei Schreibgeschützt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1357595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357595</guid><dc:creator><![CDATA[VergissEs]]></dc:creator><pubDate>Mon, 03 Sep 2007 06:54:31 GMT</pubDate></item><item><title><![CDATA[Reply to Kein schreibrecht für Datei prüfen on Mon, 03 Sep 2007 07:41:23 GMT]]></title><description><![CDATA[<p>oder du versuchst einfach die Datei zum schreiben zu öffnen und fängst den Fehler ab.</p>
<pre><code class="language-cpp">std::string file(&quot;Datei.ext&quot;);
ofstream otest(file.c_str());
if( !otest.is_open()) readonly = true;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1357607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357607</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 03 Sep 2007 07:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to Kein schreibrecht für Datei prüfen on Wed, 05 Sep 2007 17:35:04 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>oder du versuchst einfach die Datei zum schreiben zu öffnen und fängst den Fehler ab.</p>
<pre><code class="language-cpp">std::string file(&quot;Datei.ext&quot;);
ofstream otest(file.c_str());
if( !otest.is_open()) readonly = true;
</code></pre>
</blockquote>
<p>Wenn ich es so mache wird mir der Inhalt der ini gelöscht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359640</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359640</guid><dc:creator><![CDATA[schrubbel]]></dc:creator><pubDate>Wed, 05 Sep 2007 17:35:04 GMT</pubDate></item><item><title><![CDATA[Reply to Kein schreibrecht für Datei prüfen on Wed, 05 Sep 2007 17:45:02 GMT]]></title><description><![CDATA[<p>Dann machst du es halt so</p>
<pre><code class="language-cpp">std::string file(&quot;Datei.ext&quot;, std::ios::app);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1359652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359652</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 05 Sep 2007 17:45:02 GMT</pubDate></item></channel></rss>