<?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[Warum mag die GCC StdLib ios::app nicht?]]></title><description><![CDATA[<p>N'abend,</p>
<p>ist, vorhandene und zugreifbare Datei vorausgesetzt, an dieser Zeile was nicht in Ordnung?</p>
<pre><code class="language-cpp">File.open(&quot;dateiname&quot;, ios::in|ios::out|ios::binary|ios::app);
</code></pre>
<p>File ist vom Typ fstream.</p>
<p>Die mit VC++ kompilierte .exe oeffnet die Datei erfolgreich,<br />
aber unter MacOS macht er es nur, wenn ich das ios::app weglasse.<br />
(GCC-3.3 und GCC-4.0)</p>
<p>Kann dann zwar den Filepointer später setzen, seh´s aber nicht ein, denn<br />
es heißt ja in der Doku zu den Optionen</p>
<blockquote>
<p>The flag values can be <strong>any</strong> combination...</p>
</blockquote>
<p>Was hab ich übersehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/120928/warum-mag-die-gcc-stdlib-ios-app-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 13:03:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/120928.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Sep 2005 19:54:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Warum mag die GCC StdLib ios::app nicht? on Sat, 17 Sep 2005 19:54:13 GMT]]></title><description><![CDATA[<p>N'abend,</p>
<p>ist, vorhandene und zugreifbare Datei vorausgesetzt, an dieser Zeile was nicht in Ordnung?</p>
<pre><code class="language-cpp">File.open(&quot;dateiname&quot;, ios::in|ios::out|ios::binary|ios::app);
</code></pre>
<p>File ist vom Typ fstream.</p>
<p>Die mit VC++ kompilierte .exe oeffnet die Datei erfolgreich,<br />
aber unter MacOS macht er es nur, wenn ich das ios::app weglasse.<br />
(GCC-3.3 und GCC-4.0)</p>
<p>Kann dann zwar den Filepointer später setzen, seh´s aber nicht ein, denn<br />
es heißt ja in der Doku zu den Optionen</p>
<blockquote>
<p>The flag values can be <strong>any</strong> combination...</p>
</blockquote>
<p>Was hab ich übersehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/874554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874554</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 17 Sep 2005 19:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to Warum mag die GCC StdLib ios::app nicht? on Sat, 17 Sep 2005 21:28:00 GMT]]></title><description><![CDATA[<p>Ohne genauer drüber nachgedacht zu haben:<br />
Standard Seite 659, Tabelle 92 erlaubt die Kombination nicht und sagt, dass bei einer ungültigen Kombination open fehlschlägt.</p>
<p>Meines Wissens auch überflüssig, denn in|out mach kein truncate und hat daher dieselbe Wirkung wie das app. (Das ist vermutlich auch die Interpretation von VC)</p>
<p>Zumindest unterstützt obige Tabelle diese Interpretation, da in|out auf r+ (bei fopen) abgebildet wird und das macht definitiv kein truncate.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/874627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874627</guid><dc:creator><![CDATA[niemand]]></dc:creator><pubDate>Sat, 17 Sep 2005 21:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to Warum mag die GCC StdLib ios::app nicht? on Sun, 18 Sep 2005 07:39:29 GMT]]></title><description><![CDATA[<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/874703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/874703</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 18 Sep 2005 07:39:29 GMT</pubDate></item></channel></rss>