Author Topic: After amount of lines a new file is created or usedfile gets new name.  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
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

PtokaX forum


Offline klownietklowniet

  • Forum Ace
  • *****
  • Posts: 77
  • Karma: +0/-0
(No subject)
« Reply #1 on: 09 November, 2003, 01:00:35 »
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 < ]

Offline NightLitch

  • Emperor
  • **
  • Posts: 1 455
  • Karma: +16/-0
(No subject)
« Reply #2 on: 10 November, 2003, 23:16:34 »
ThX for the help -klownietklowniet- Gonna try...

/NightLitch
//NL

Offline plop

  • Forum God
  • ****
  • Posts: 2 464
  • Karma: +37/-0
(No subject)
« Reply #3 on: 11 November, 2003, 05:59:18 »
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 <----<<

PtokaX forum

(No subject)
« Reply #3 on: 11 November, 2003, 05:59:18 »