>Dear Experts
>
>I want to create a log.txt or log.ini or log.xls for my software as:
>
>Suppose some user uses my software in the follwing duration:
>27-04-2006 06:00:25 AM TO 27-04-2006 08:30:55
>
>I want ot store values into log file
>
>SNO-----------Start--------------------stop---------
> 1----27-04-2006 06:00:25 AM -- 27-04-2006 08:30:55 AM
>(like three fields)
>What procedure should I add into my main prg.
>I do not want to use dbf for this purpose.
>
>Please help
Tariq
I don't know if your users have logon table or not (multi-user).
You could record, in global variables, the date and time that they log on, or as soon as the program is invoked.
Similarly record the date/time they log off, or last thing before the program is closed.
If you want to put the results in a text file then you can use the low level file handling functions:
FOPEN(), FCLOSE(), FPUTS(), FWRITE() etc.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.