Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check the date on a text file

Status
Not open for further replies.

Wes1961

Technical User
Aug 21, 2001
72
US
I download a text file every day and append it to an existing database. Every now and then the download fails I append the old text file. How can I check the date of the text file and make sure that it is equal to the current date before I append?
 
Check ADIR(). e.g.
lnFound = ADIR(myarray, "c:\AUTOEXEC.BAT")
IF lnFound = 1
? myarray[3] && modified date
? myarray[4] && modified time
ENDIF

Rick

 
After you are finished with the old text file,
delete it or move it to a storge location David W. Grewe
Dave@internationalbid.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top