After amount of lines a new file is created or usedfile gets new name.
 

After amount of lines a new file is created or usedfile gets new name.

Started by NightLitch, 09 November, 2003, 00:18:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NightLitch

Hey guys...!

I was wondering, In my BanList(Log), After say 10000 lines(bans then) current file is being backup:ed... to another file...

And current file is being nil:ed...

is that possible and if, how???

Have seen that Chilla's Ranger has a system...

Gonna check that but I would want more solusions to my idea or developing... :-) plz help me out...

/NightLitch
//NL

klownietklowniet

How about making one a day.. or week.. or ...

You can use: rename(filename1, filename2) and remove(filename) for your cause...

You can always have a counter at the top of the files, something like number of entries... or even in a different file... just the counter that is...
[ > DC - UniteD < ]

NightLitch

ThX for the help -klownietklowniet- Gonna try...

/NightLitch
//NL

plop

i use the date as start of the filename, so @ midnight it automaticly makes a new file.
can't be simpler and it's easy 2 search for something when you have 2.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk