Posted on 1998-03-07
Hi I am using Borland C++ Builder v1.0, I would like to know how to have my application put the following in a .dat file (i want it to append--add to the bottom--not overwrite what is in the .dat file).
On <date> at <time> someone entered a wrong password of <password>.
<date> = Current date in short format (i.e 4/14/98)
<time> = Current time in 12 hour format (i.e. 11:37 am)
<password> = Contents of the Edit Box (Edit2)
On 4/14/98 at 11:37am someone entered a wrong password of cool.
Then take the statement and append it to badpass.dat (in same directory as my executable application)