<?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[fstream und line endings kompatibel zu windows halten]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schreibe ein Konsolenprogramm unter Linux, welches eine Textdatei ausgibt, die später von einem Windowsprogramm gelesen werden soll.</p>
<p>Das schreiben in meine Datei erledige ich über die C++ Stream Klassen.</p>
<p>leider ist aber sowas wie</p>
<p>dststream &lt;&lt; endl;</p>
<p>plattformspezifisch. d.h. unter Linux produziert das nur ein &lt;LF&gt; und nicht &lt;CR&gt;&lt;LF&gt;, wie es das Windowsprogramm erwartet. Gibt es eine Möglichkeit das Verhalten von endl zu beeinflussen?</p>
<p>viele Grüße<br />
Morle</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233969/fstream-und-line-endings-kompatibel-zu-windows-halten</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 14:53:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233969.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Feb 2009 13:21:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fstream und line endings kompatibel zu windows halten on Wed, 11 Feb 2009 13:21:29 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schreibe ein Konsolenprogramm unter Linux, welches eine Textdatei ausgibt, die später von einem Windowsprogramm gelesen werden soll.</p>
<p>Das schreiben in meine Datei erledige ich über die C++ Stream Klassen.</p>
<p>leider ist aber sowas wie</p>
<p>dststream &lt;&lt; endl;</p>
<p>plattformspezifisch. d.h. unter Linux produziert das nur ein &lt;LF&gt; und nicht &lt;CR&gt;&lt;LF&gt;, wie es das Windowsprogramm erwartet. Gibt es eine Möglichkeit das Verhalten von endl zu beeinflussen?</p>
<p>viele Grüße<br />
Morle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1661748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1661748</guid><dc:creator><![CDATA[Morle]]></dc:creator><pubDate>Wed, 11 Feb 2009 13:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to fstream und line endings kompatibel zu windows halten on Wed, 11 Feb 2009 16:29:20 GMT]]></title><description><![CDATA[<p>Das Problem hast du nur, wenn du die Datei unter Windows als &quot;Binary&quot; öffnest, ansonsten kümmert sich nämlich Windows darum, dass \n zu \r\n wird etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1661929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1661929</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Wed, 11 Feb 2009 16:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to fstream und line endings kompatibel zu windows halten on Wed, 11 Feb 2009 19:00:34 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-4178.html" rel="nofollow">nman</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-5.html" rel="nofollow">Linux/Unix</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1662043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1662043</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 11 Feb 2009 19:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to fstream und line endings kompatibel zu windows halten on Wed, 11 Feb 2009 19:09:10 GMT]]></title><description><![CDATA[<p>zu not kannst du doch sowas schreiben:<br />
stream &lt;&lt; &quot;Lol dien text&quot; &lt;&lt; &quot;\n\r&quot;;</p>
<p>also so nach dem motto</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1662053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1662053</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Wed, 11 Feb 2009 19:09:10 GMT</pubDate></item></channel></rss>