This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

timestamping when writing files

Old posts that have not been replied to for several years.
Locked
B
Black

Post by Black »

how to get a date added in a txt file when using public commands.

like:
!editnews Bla......

it should append the actual date to the end of the line


<font size=-1>[ This Message was edited by: Black on 2002-05-22 08:43 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You'll have to edit the script. Find the line that writes to the file. It should look something like this:

puts $fp $data

Add this line right before it:

set timestamp [clock format [clock seconds] -format "%H:%m %D"]

Now change the other line to:

puts $fp "$data $timestamp"
Locked