<?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[.ini Dateien zählen]]></title><description><![CDATA[<p>Hallo!</p>
<p>gibt es beim BCB5 ne Funtkion die alle .ini Dateien in einem Ordner zählt und die Anzahl als zb. int Wert zurück gibt?</p>
<p>gruß &amp;&amp; danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/97613/ini-dateien-zählen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 02:39:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/97613.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jan 2005 11:52:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .ini Dateien zählen on Wed, 12 Jan 2005 11:52:15 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>gibt es beim BCB5 ne Funtkion die alle .ini Dateien in einem Ordner zählt und die Anzahl als zb. int Wert zurück gibt?</p>
<p>gruß &amp;&amp; danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694085</guid><dc:creator><![CDATA[Hey_Dude]]></dc:creator><pubDate>Wed, 12 Jan 2005 11:52:15 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Wed, 12 Jan 2005 14:13:49 GMT]]></title><description><![CDATA[<p><em>suuuuummm ich sehe in meine Kristallkugel und sie sagt mir...</em><br />
<strong>Suche und Finde !!</strong></p>
<p>Hast du schon mal über eine schleife nachgedacht mit der du das verzeichnis durchsuchen kannst ?<br />
Und denn alles was nicht *.ini heisst einfach rauslässt.</p>
<p>Also bei <a href="http://www.bytesandmore.de/rad/cpp/snipp/sc01009.php" rel="nofollow">www.bytesandmore.de</a> kannst du dich erstmal über Schleifen in Verbindung mit Verzeichnissen informieren. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Greez<br />
TheGeek</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694274</guid><dc:creator><![CDATA[TheGeek]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:13:49 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Wed, 12 Jan 2005 16:36:57 GMT]]></title><description><![CDATA[<p>hallo wenn du willst kann ich dir einen code geben der überall funktioniert. konsole wie winapi/vcl! mit (normalerweise) allen compilern. du musst mir nur posten ob du ihn willst!? ich kann ihn dir selbstverständlich auch als m@il schicken!!<br />
es ist eine schleife.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694482</guid><dc:creator><![CDATA[Blackhawk]]></dc:creator><pubDate>Wed, 12 Jan 2005 16:36:57 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Wed, 12 Jan 2005 21:04:00 GMT]]></title><description><![CDATA[<p>Blackhawk schrieb:</p>
<blockquote>
<p>hallo wenn du willst kann ich dir einen code geben der überall funktioniert. konsole wie winapi/vcl! mit (normalerweise) allen compilern. du musst mir nur posten ob du ihn willst!? ich kann ihn dir selbstverständlich auch als m@il schicken!!<br />
es ist eine schleife.</p>
</blockquote>
<p>ja, bitte, wäre dir sehr dankbar<br />
<a href="mailto:oliver.matijevic@freenet.de" rel="nofollow">oliver.matijevic@freenet.de</a><br />
oder <a href="mailto:oliver.matijevic@gmx.de" rel="nofollow">oliver.matijevic@gmx.de</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/694733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694733</guid><dc:creator><![CDATA[Hey_Dude]]></dc:creator><pubDate>Wed, 12 Jan 2005 21:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Wed, 12 Jan 2005 21:47:31 GMT]]></title><description><![CDATA[<p>ja supi ... könntest du den fertigen quell-code bitte mal hier her posten damit alle was davon haben!</p>
<p><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>
<p>Danke<br />
TheGeek</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694779</guid><dc:creator><![CDATA[TheGeek]]></dc:creator><pubDate>Wed, 12 Jan 2005 21:47:31 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Thu, 13 Jan 2005 13:52:30 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;dirent.h&gt;
#include &lt;cstdio&gt;

int main()
{
  DIR *d;
  dirent *de;
  char pfad[256];

  printf(&quot;Bitte geben Sie den Pfad ein, der durchsucht werden soll: &quot;);
  scanf(&quot;%s&quot;,pfad);
  if((d=opendir(pfad))!=NULL)
  {
    //char *name;
    while(de=readdir(d))
    {
      //tu was
      //name=de-&gt;d_name;
      //if(!(name[0]!='.'&amp;&amp;name[1]!='\0')|| //damit verzeichnis . &amp; .. nicht angezeigt wird
      //!(name[0]!='.'&amp;&amp;name[1]!='.'&amp;&amp;name[2]!='\0'))
      //{
        //printf(&quot;%s\n&quot;,de-&gt;d_name);
      //}
    }
    closedir(d);
  }

  return 0;
}
</code></pre>
<p>ein beispiel, aber nicht getestet!<br />
das auskommentierte kann man so übernehmen, aber nur in console (wegen printf usw)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695130</guid><dc:creator><![CDATA[Blackhawk]]></dc:creator><pubDate>Thu, 13 Jan 2005 13:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Thu, 13 Jan 2005 18:45:21 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>der C Code funktioniert beim Borland B.5 leider nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695450</guid><dc:creator><![CDATA[Hey_Dude]]></dc:creator><pubDate>Thu, 13 Jan 2005 18:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Thu, 13 Jan 2005 19:06:09 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>doch, man kann diesen Code auch mit der VCL benutzten, wenn man ihn etwas umgestalltet (Funktion eines Forms mit einer ListBox) :</p>
<pre><code class="language-cpp">DIR *d;
  dirent *de;
  char pfad[256] = &quot;c:\\winnt&quot;;

  if((d=opendir(pfad))!=NULL)
  {
    while(de=readdir(d))
    {
      ListBox1-&gt;Items-&gt;Add(de-&gt;d_name);
    }
    closedir(d);
  }
</code></pre>
<p>Allerdings bekomme ich bei readdir eine Warung auf inkorrekte Zuweisung. Gibt es noch eine andere Möglichkeit, den Rückgabewert von readdir zuermitteln, ohne den Operator = ?</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695472</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 13 Jan 2005 19:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Thu, 13 Jan 2005 19:23:43 GMT]]></title><description><![CDATA[<p>glaube net! <a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8344">@Hey_Dude</a>: hab doch gesagt wegen printf und so gehts in vcl net<br />
du musst halt printf und scanf entfernen / auskommentieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695485</guid><dc:creator><![CDATA[Blackhawk]]></dc:creator><pubDate>Thu, 13 Jan 2005 19:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to .ini Dateien zählen on Thu, 13 Jan 2005 19:27:41 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>habs gefunden (war wohl ein bißchen blind, stand ja zwei Zeilen drüber)</p>
<pre><code class="language-cpp">while((de=readdir(d)) != NULL)
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695487</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 13 Jan 2005 19:27:41 GMT</pubDate></item></channel></rss>