<?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[Änderungsdatum einer Datei auslesen]]></title><description><![CDATA[<p>Hallo,<br />
ich beschäftige mich momentan mit FindFirst u. FindNext.<br />
Da habe ich dann das Beispiel aus Borland ausgegraben. Damit kann ich die Dateien, die sich in einem Ordner befinden, auslesen.<br />
Mein frage wäre, wie ich das ganze erweitern kann damit ich auch das<br />
Änderungsdatum im StringGrid aufgelistet bekomme.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  TSearchRec sr;
  int iAttributes = 0;
  StringGrid1-&gt;RowCount = 1;
  iAttributes |= faReadOnly * CheckBox1-&gt;Checked;
  iAttributes |= faHidden * CheckBox2-&gt;Checked;
  iAttributes |= faSysFile * CheckBox3-&gt;Checked;
  iAttributes |= faVolumeID * CheckBox4-&gt;Checked;
  iAttributes |= faDirectory * CheckBox5-&gt;Checked;
  iAttributes |= faArchive * CheckBox6-&gt;Checked;
  iAttributes |= faAnyFile * CheckBox7-&gt;Checked;
  StringGrid1-&gt;RowCount = 0;
  if (FindFirst(Edit1-&gt;Text, iAttributes, sr) == 0)

  {
    do
    {
      if ((sr.Attr &amp; iAttributes) == sr.Attr)
      {
        StringGrid1-&gt;RowCount = StringGrid1-&gt;RowCount + 1;
        StringGrid1-&gt;Cells[1][StringGrid1-&gt;RowCount-1] = sr.Name;
        StringGrid1-&gt;Cells[2][StringGrid1-&gt;RowCount-1] = IntToStr(sr.Size);
      }
    } while (FindNext(sr) == 0);
    FindClose(sr);
  }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/170674/änderungsdatum-einer-datei-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 01:56:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170674.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jan 2007 13:27:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Änderungsdatum einer Datei auslesen on Thu, 18 Jan 2007 13:27:57 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich beschäftige mich momentan mit FindFirst u. FindNext.<br />
Da habe ich dann das Beispiel aus Borland ausgegraben. Damit kann ich die Dateien, die sich in einem Ordner befinden, auslesen.<br />
Mein frage wäre, wie ich das ganze erweitern kann damit ich auch das<br />
Änderungsdatum im StringGrid aufgelistet bekomme.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  TSearchRec sr;
  int iAttributes = 0;
  StringGrid1-&gt;RowCount = 1;
  iAttributes |= faReadOnly * CheckBox1-&gt;Checked;
  iAttributes |= faHidden * CheckBox2-&gt;Checked;
  iAttributes |= faSysFile * CheckBox3-&gt;Checked;
  iAttributes |= faVolumeID * CheckBox4-&gt;Checked;
  iAttributes |= faDirectory * CheckBox5-&gt;Checked;
  iAttributes |= faArchive * CheckBox6-&gt;Checked;
  iAttributes |= faAnyFile * CheckBox7-&gt;Checked;
  StringGrid1-&gt;RowCount = 0;
  if (FindFirst(Edit1-&gt;Text, iAttributes, sr) == 0)

  {
    do
    {
      if ((sr.Attr &amp; iAttributes) == sr.Attr)
      {
        StringGrid1-&gt;RowCount = StringGrid1-&gt;RowCount + 1;
        StringGrid1-&gt;Cells[1][StringGrid1-&gt;RowCount-1] = sr.Name;
        StringGrid1-&gt;Cells[2][StringGrid1-&gt;RowCount-1] = IntToStr(sr.Size);
      }
    } while (FindNext(sr) == 0);
    FindClose(sr);
  }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1212020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1212020</guid><dc:creator><![CDATA[wolfscowl]]></dc:creator><pubDate>Thu, 18 Jan 2007 13:27:57 GMT</pubDate></item><item><title><![CDATA[Reply to Änderungsdatum einer Datei auslesen on Thu, 18 Jan 2007 13:59:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Schau doch bitte mal in die Hilfe zu TSearchRec (speziell FindData und Time). Da steht unter anderen auch das drin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1212049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1212049</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 18 Jan 2007 13:59:27 GMT</pubDate></item></channel></rss>