<?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[ifstream::getline(???)]]></title><description><![CDATA[<p>Hi,</p>
<p>was muss da als Parameter übergeben werden?</p>
<p>ich Verusche es so:</p>
<pre><code class="language-cpp">CString Line;
ifstream sourcfile;
sourcefile.open(&quot;Test.TXT&quot;, ios::nocreate)
if ( sourcefile(is_open())
{
  while(!sourcefile.eof())
  {
   sourcefile.getline(Line,100,&quot;\n&quot;)
}
}
</code></pre>
<p>So in diesem Fall, sagt er das wäre kein char*! Naja das weis ich, nur ist ein String nicht das im Prinzip das gleiche wie char *???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/170202/ifstream-getline</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 10:57:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170202.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jan 2007 18:01:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ifstream::getline(???) on Fri, 12 Jan 2007 18:01:28 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>was muss da als Parameter übergeben werden?</p>
<p>ich Verusche es so:</p>
<pre><code class="language-cpp">CString Line;
ifstream sourcfile;
sourcefile.open(&quot;Test.TXT&quot;, ios::nocreate)
if ( sourcefile(is_open())
{
  while(!sourcefile.eof())
  {
   sourcefile.getline(Line,100,&quot;\n&quot;)
}
}
</code></pre>
<p>So in diesem Fall, sagt er das wäre kein char*! Naja das weis ich, nur ist ein String nicht das im Prinzip das gleiche wie char *???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1208946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1208946</guid><dc:creator><![CDATA[Kollyn]]></dc:creator><pubDate>Fri, 12 Jan 2007 18:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to ifstream::getline(???) on Fri, 12 Jan 2007 19:33:13 GMT]]></title><description><![CDATA[<p>Wenn Du einen CString nutzen möchtest kannst Du CString::GetBuffer/ReleaseBuffer nutzen. Oder CStrBuf! Ansonstem mach aus Line ein char Line[101];</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1208992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1208992</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 12 Jan 2007 19:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to ifstream::getline(???) on Sat, 13 Jan 2007 10:22:41 GMT]]></title><description><![CDATA[<p>oder nimm vllt einfach mal std::string ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1209178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1209178</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 13 Jan 2007 10:22:41 GMT</pubDate></item></channel></rss>