<?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[Fatal Error: Expected a file name; Was muss ich tun?]]></title><description><![CDATA[<p>Hallo,<br />
ich habe nun seit sehr langer Zeit nichts mehr programmiert und bin sehr eingerostet. Ich habe nun folgenden Code (soll eine Textdatei auslesen und die Zeilen in zufälliger Reihenfolge im Memo wiedergeben, ist aber jetzt nebensache, es geht um den Fehler unten (unter dem Code)):</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TStringList *sllist1;
TStringList *sllist2;
int zufall;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
sllist1=new TStringList;
sllist2=new TStringList;
randomize();
sllist1-&gt;LoadFromFile(&quot;list.txt&quot;);
for(int x=0;x&lt;sllist1-&gt;Count;x++)
  {
  zufall=random(sllist1-&gt;Count);
  sllist2-&gt;Add(sllist1-&gt;Strings[zufall]);
  sllist1-&gt;Delete(zufall);
  }
Memo1-&gt;Text=sllist2-&gt;Text;
delete sllist1;
delete sllist2;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Nun bekomme ich den Fehler: Fatal: Expected a file name<br />
im Code wird auch nichts makiert.</p>
<p>Danke im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180526/fatal-error-expected-a-file-name-was-muss-ich-tun</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 15:38:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180526.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 May 2007 18:17:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fatal Error: Expected a file name; Was muss ich tun? on Thu, 03 May 2007 18:17:50 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe nun seit sehr langer Zeit nichts mehr programmiert und bin sehr eingerostet. Ich habe nun folgenden Code (soll eine Textdatei auslesen und die Zeilen in zufälliger Reihenfolge im Memo wiedergeben, ist aber jetzt nebensache, es geht um den Fehler unten (unter dem Code)):</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TStringList *sllist1;
TStringList *sllist2;
int zufall;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
sllist1=new TStringList;
sllist2=new TStringList;
randomize();
sllist1-&gt;LoadFromFile(&quot;list.txt&quot;);
for(int x=0;x&lt;sllist1-&gt;Count;x++)
  {
  zufall=random(sllist1-&gt;Count);
  sllist2-&gt;Add(sllist1-&gt;Strings[zufall]);
  sllist1-&gt;Delete(zufall);
  }
Memo1-&gt;Text=sllist2-&gt;Text;
delete sllist1;
delete sllist2;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Nun bekomme ich den Fehler: Fatal: Expected a file name<br />
im Code wird auch nichts makiert.</p>
<p>Danke im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278305</guid><dc:creator><![CDATA[Hjek]]></dc:creator><pubDate>Thu, 03 May 2007 18:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fatal Error: Expected a file name; Was muss ich tun? on Thu, 03 May 2007 18:37:57 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>In die FAQ des BCB-Forums hier schauen, da gibts extra einen Thread namens &quot;expected a file name&quot;</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278320</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 03 May 2007 18:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fatal Error: Expected a file name; Was muss ich tun? on Fri, 04 May 2007 09:27:26 GMT]]></title><description><![CDATA[<p>Tut mir Leid^^<br />
Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278622</guid><dc:creator><![CDATA[Hjek]]></dc:creator><pubDate>Fri, 04 May 2007 09:27:26 GMT</pubDate></item></channel></rss>