<?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[fscanf(file,&amp;quot;%s&amp;quot;, m_vorname);]]></title><description><![CDATA[<p>Hi Leute</p>
<p>Hab ein kleines Problem, und zwar möchte ich aus einer Textdatei nacheinander mehrere Einträge in CStrings auslesen:</p>
<p>fscanf(file,&quot;%s&quot;, m_vorname);</p>
<p>Jedoch überschreibt mir z.B. die Zeile oben auch alle anderen Variablen vom Typ CString, so ist zum Beispiel in m_name danach das selbe wie in m_vorname</p>
<p>Wäre echt net, wenn mir wer helfen könnte</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/69399/fscanf-file-quot-s-quot-m_vorname</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 01:21:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/69399.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Mar 2004 08:00:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fscanf(file,&amp;quot;%s&amp;quot;, m_vorname); on Sat, 27 Mar 2004 08:00:12 GMT]]></title><description><![CDATA[<p>Hi Leute</p>
<p>Hab ein kleines Problem, und zwar möchte ich aus einer Textdatei nacheinander mehrere Einträge in CStrings auslesen:</p>
<p>fscanf(file,&quot;%s&quot;, m_vorname);</p>
<p>Jedoch überschreibt mir z.B. die Zeile oben auch alle anderen Variablen vom Typ CString, so ist zum Beispiel in m_name danach das selbe wie in m_vorname</p>
<p>Wäre echt net, wenn mir wer helfen könnte</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/489837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/489837</guid><dc:creator><![CDATA[Master of Buuh]]></dc:creator><pubDate>Sat, 27 Mar 2004 08:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to fscanf(file,&amp;quot;%s&amp;quot;, m_vorname); on Sat, 27 Mar 2004 15:10:06 GMT]]></title><description><![CDATA[<p>versuchs doch mal mit *char *fgets( char *string, int n, FILE <em>stream );</em>, da liest du eine zeile ein, danach kannst dus dann mit sscanf auslesen. das ist eh viel sicherer, da du bei fgets eine maximallänge angeben kannst -&gt; kein buffer overflow</p>
]]></description><link>https://www.c-plusplus.net/forum/post/490041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/490041</guid><dc:creator><![CDATA[Frauke2k]]></dc:creator><pubDate>Sat, 27 Mar 2004 15:10:06 GMT</pubDate></item><item><title><![CDATA[Reply to fscanf(file,&amp;quot;%s&amp;quot;, m_vorname); on Sat, 27 Mar 2004 15:34:25 GMT]]></title><description><![CDATA[<p>C-Funktionen sind nicht für C++ Klassen gedacht.<br />
evtl. beschäftigst du dich mal mit I/O in C++ (fstream/ifstream/ofstream)</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/490057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/490057</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Sat, 27 Mar 2004 15:34:25 GMT</pubDate></item></channel></rss>