<?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[Datei mit aktuellem Datum als Titel erstellen + Laufnummer]]></title><description><![CDATA[<p>Ich möchte Daten in einer Datei speichern =&gt; geht auch schon - dank Forum!<br />
Nun möchte ich die Datei allerdings nach dem aktuellen Datum und einer Laufnummer benennen. (z.B. 27_01_06_001) Wie kann ich das machen?</p>
<pre><code>TStringList *SaveList = new TStringList();
SaveList-&gt;Add(&quot;Zeit\t  Wert&quot;);
SaveList-&gt;SaveToFile(&quot;Messung.txt&quot;); // wir soll Datum + Laufnummer hin
TStringList *LoadList = new TStringList();
LoadList-&gt;LoadFromFile(&quot;Messung.txt&quot;);
for (int i=0; i&lt;=1000; i++)
        {
        LoadList-&gt;Add(IntToStr(i) + &quot;\t &quot; + IntToStr(Mess[i]));
        }
LoadList-&gt;SaveToFile(&quot;Messung.txt&quot;);
</code></pre>
<p>Danke für eure Hilfe!<br />
Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/134666/datei-mit-aktuellem-datum-als-titel-erstellen-laufnummer</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 04:31:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/134666.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Jan 2006 15:40:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 15:40:41 GMT]]></title><description><![CDATA[<p>Ich möchte Daten in einer Datei speichern =&gt; geht auch schon - dank Forum!<br />
Nun möchte ich die Datei allerdings nach dem aktuellen Datum und einer Laufnummer benennen. (z.B. 27_01_06_001) Wie kann ich das machen?</p>
<pre><code>TStringList *SaveList = new TStringList();
SaveList-&gt;Add(&quot;Zeit\t  Wert&quot;);
SaveList-&gt;SaveToFile(&quot;Messung.txt&quot;); // wir soll Datum + Laufnummer hin
TStringList *LoadList = new TStringList();
LoadList-&gt;LoadFromFile(&quot;Messung.txt&quot;);
for (int i=0; i&lt;=1000; i++)
        {
        LoadList-&gt;Add(IntToStr(i) + &quot;\t &quot; + IntToStr(Mess[i]));
        }
LoadList-&gt;SaveToFile(&quot;Messung.txt&quot;);
</code></pre>
<p>Danke für eure Hilfe!<br />
Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/978165</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978165</guid><dc:creator><![CDATA[Lars73]]></dc:creator><pubDate>Fri, 27 Jan 2006 15:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 15:45:17 GMT]]></title><description><![CDATA[<p>schau mal TDateTime an</p>
<p>BigNeal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/978173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978173</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Fri, 27 Jan 2006 15:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 15:58:37 GMT]]></title><description><![CDATA[<p>Werde ich gleich mal machen! Speiche dann bestimmt das Datum in einer Variablen (z.B. Date) und wie verwende ich es dann als Dateinamen?</p>
<pre><code>SaveList-&gt;SaveToFile(&quot;Date.txt&quot;); // so bestimmt nicht!!!!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/978190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978190</guid><dc:creator><![CDATA[Lars73]]></dc:creator><pubDate>Fri, 27 Jan 2006 15:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 16:09:22 GMT]]></title><description><![CDATA[<p>Habe systdate.h included, aber CurrentDate geht nicht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
<pre><code>q=CurrentDate();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/978213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978213</guid><dc:creator><![CDATA[Lars73]]></dc:creator><pubDate>Fri, 27 Jan 2006 16:09:22 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 16:09:42 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">String datname = Now().FormatString(&quot;dd_mm_yy&quot;)+&quot;_&quot;+IntToStr(Laufnummer);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/978214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978214</guid><dc:creator><![CDATA[adds]]></dc:creator><pubDate>Fri, 27 Jan 2006 16:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 16:50:28 GMT]]></title><description><![CDATA[<p>Wobei ich die Bennenung im Format yyyy_mm__dd vorziehen würde, dann sind die Dateien auch bei Sortierung nach Name in chronologischer Reihenfolge.</p>
<p>Um TDateTime verwenden zu können, mußt Du nichts weiter includen. Allerdings ist CurrentDate() eine Memberfunktion von TDateTime, also:</p>
<pre><code class="language-cpp">TDateTime dtTest = TDateTime::CurrentDate();
// oder
TDateTime dtTest = dtTest.CurrentDate();
</code></pre>
<p>Grüße Joe_M.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/978257</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978257</guid><dc:creator><![CDATA[zufaulzumeinloggen]]></dc:creator><pubDate>Fri, 27 Jan 2006 16:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit aktuellem Datum als Titel erstellen + Laufnummer on Fri, 27 Jan 2006 17:07:00 GMT]]></title><description><![CDATA[<p>Geile Typen seit ihr...danke!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/978264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978264</guid><dc:creator><![CDATA[Lars73]]></dc:creator><pubDate>Fri, 27 Jan 2006 17:07:00 GMT</pubDate></item></channel></rss>