can sockets be made to read txt files all the time and post the changes in irc?
I would like to grab the info from
http://a.swirve.com/data , but you can see the txt file name changes at random times.
I would like to be able to read the current .txt file and output the info into a channel each time a new line is added.
The format of the line entries is:
6243 20 1 tanks to you retal (#950) Tenacious SOLer (#2396) 10 0 1 658 1472 Paradigm SOL
6243 - date i not sure how this is formatted
20 - the hour
1 - win or lose either 1 or 0
tanks to you retal(#950) - the attacker
Tenacious soler(#2396) - the attacked
10 - results from the attack
0 - results from the attack
1 - the type of attack - SS(1), PS(2), GS(5), BR(6), AB(7), Nuke(10), Chem(11), Cruise(12)
658 - rank of the attacker
1472 - rank of the attacked
paradigm - clan of the attacker
sol - clan of the attacked
I would like the output to be like:
SS-Capertown (#2895)(Rival)()->The Land of the OCracy (#2243)() and won 652A
Thank you in advance