<?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[&#x5C;n in textfiles]]></title><description><![CDATA[<p>ich hab in einer textdatei folgendes stehen</p>
<p>.<br />
.<br />
.<br />
gb Guest Book \n gb Great Britain<br />
.<br />
.</p>
<p>der code:</p>
<p>char bla[1000]<br />
.<br />
.<br />
fgets(bla,100,dateio);<br />
.<br />
.<br />
.<br />
cout &lt;&lt; bla &lt;&lt; endl;<br />
.<br />
.<br />
.</p>
<p>das prob ist das kein zeilenumbruch kommt.<br />
habs auch schon mit \\n '\n' &quot;\n&quot; versucht.<br />
was muss ich also schreiben um einen zeilenumbruch zu erzeugen??</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143687/n-in-textfiles</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 09:19:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143687.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Apr 2006 20:38:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &#x5C;n in textfiles on Mon, 10 Apr 2006 20:38:51 GMT]]></title><description><![CDATA[<p>ich hab in einer textdatei folgendes stehen</p>
<p>.<br />
.<br />
.<br />
gb Guest Book \n gb Great Britain<br />
.<br />
.</p>
<p>der code:</p>
<p>char bla[1000]<br />
.<br />
.<br />
fgets(bla,100,dateio);<br />
.<br />
.<br />
.<br />
cout &lt;&lt; bla &lt;&lt; endl;<br />
.<br />
.<br />
.</p>
<p>das prob ist das kein zeilenumbruch kommt.<br />
habs auch schon mit \\n '\n' &quot;\n&quot; versucht.<br />
was muss ich also schreiben um einen zeilenumbruch zu erzeugen??</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034801</guid><dc:creator><![CDATA[omarius]]></dc:creator><pubDate>Mon, 10 Apr 2006 20:38:51 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Mon, 10 Apr 2006 20:43:17 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>unter Windows die Kombination der beiden Zeichen '\r' und '\n'</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034803</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 10 Apr 2006 20:43:17 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Mon, 10 Apr 2006 21:18:37 GMT]]></title><description><![CDATA[<p>schade funzt auch nicht:<br />
vllt liegts an meinem code:</p>
<blockquote>
<p>while(go == 1)<br />
{<br />
if(menue == 1)<br />
{<br />
found = 2;<br />
cout &lt;&lt; &quot;What abb are you looking for?&quot; &lt;&lt; endl;<br />
cin &gt;&gt; search;<br />
size = strlen(search);<br />
reader = fopen(&quot;c://abbs.txt&quot;,&quot;r&quot;);<br />
while(feof(reader) == 0 &amp;&amp; found == 2)<br />
{<br />
fgets(abb,1000,reader);</p>
<p>if(strncmp(abb,search,size) == 0)<br />
{<br />
cout &lt;&lt; abb &lt;&lt; endl;<br />
found = 1;</p>
<p>cout &lt;&lt;&quot;[1] Look for another abbrevation!&quot;&lt;&lt; endl; //<br />
cout &lt;&lt;&quot;[2] Define an abbrevation!&quot;&lt;&lt; endl; //<br />
cout &lt;&lt;&quot;[3] Show complete abb-list!&quot;&lt;&lt; endl; // menue v2<br />
cout &lt;&lt;&quot;[4] Exit Abbiator!&quot;&lt;&lt; endl; //<br />
cin &gt;&gt; menue; //<br />
}</p>
<p>}<br />
fclose(reader);</p>
</blockquote>
<p>oder mach ma bitte ein beispiel wie du die kombinierst</p>
<p>so oder?: \r\n<br />
'\r\n' funzt auch nich..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034817</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034817</guid><dc:creator><![CDATA[omarius]]></dc:creator><pubDate>Mon, 10 Apr 2006 21:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Mon, 10 Apr 2006 21:48:18 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>du darfst die beiden Zeichen ja auch nicht als Klartext in die Datei schreiben, sondenr als Steuerzeichen.. .eben als Enter.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034826</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 10 Apr 2006 21:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Tue, 11 Apr 2006 09:03:30 GMT]]></title><description><![CDATA[<p>Aber es muss in einer zeile stehen, sonst funzt die suchfunktion nicht mehr.</p>
<p>also kann man in c++ nicht erreichen dass eine zeile in txt-dateien als 2(also mit zeilenumbruch) gelesen wird???????</p>
<p>bei php könnt ich ja &lt;br&gt; schreiben, warum geht das nicht in c++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034993</guid><dc:creator><![CDATA[omarius]]></dc:creator><pubDate>Tue, 11 Apr 2006 09:03:30 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Tue, 11 Apr 2006 09:17:05 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>- du kannst dir für die 'zeileninternen Zeilen' zum Beispiel ein anderes Steuerzeichen definieren, mit dem du die 'zeileninternen Zeichenumbrüche' markierst.</p>
<p>- du liest die Zeilen weiterhin einzeln ein, und hängst zusammengehörende Zeilen wieder im Programm mit gewohnten Zeilenumbruch zusammen.</p>
<p>- du nimmst zum Trennen der echten Zeilen in der Datei ein anderes Steuerzeichen, und trennst die 'internen Zeilen' wieder mit dem gewohnten.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1035004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1035004</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 11 Apr 2006 09:17:05 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Tue, 11 Apr 2006 09:38:45 GMT]]></title><description><![CDATA[<p>also erstmal akari danke für deine mühe,<br />
aber weißt du, ich bin nich nocht son c++GURU, und bin jetzt nicht ganz klar gekommen mit dem was du gesagt hast.<br />
könntest du(oder jemand der das checkt) bei gelegenheit vllt ein kleines beispielprog schreiben? thx!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1035015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1035015</guid><dc:creator><![CDATA[omarius]]></dc:creator><pubDate>Tue, 11 Apr 2006 09:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to &#x5C;n in textfiles on Tue, 11 Apr 2006 09:56:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">std::ifstream f(&quot;abbs.txt&quot;, std::ios::in)
std::string line;
while (std::getline(line, f)) {
  std::size_type pos;
  while ((pos = line.find(&quot;\\n&quot;)) != std::string::npos)
    line.replace(pos, 2, &quot;\n&quot;);
  std::cout &lt;&lt; line &lt;&lt; std::endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1035030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1035030</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Tue, 11 Apr 2006 09:56:19 GMT</pubDate></item></channel></rss>