#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    29
    Rep Power
    0

    Saving .txt file with datetostr.... how....


    Hello my friends..

    I have a list, including student's number, students name.

    I want to save the listbox as .txt to my harddrive with currentdate.

    without current date I can be able to save it like

    tlmdlistbox.items.savetofile('d\list.txt');

    Problem: how can I be able to the change filename list to be the current date?

    For example;
    If I save the .txt file today, the filename will be 23.08.2012.txt
    If I save the .txt file tomorrow, the filename will be 24.08.2012.txt

    Please help....
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    29
    Rep Power
    0
    Problem solved. thanks.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    397
    Rep Power
    10
    You may possibly want to also add the time in the file name, in case you save the file more than once in a day.

IMN logo majestic logo threadwatch logo seochat tools logo