What is the easiest way to write, read, and edit tables stored within files? I need to store in a database-like file records of players that are warned or kicked for using inappropriate words in the chat so that the "punishment" is taken to a new level after a certain number of attempts.
I'd also like to use a table/database to store the words that trigger the warning or kick, and to improve the default ban function to work something like xban2.
Speaking of xban2, I tried looking at the code as well as the lua-users wiki but couldn't make sense of anything. If someone can provide me with a detailed explanation of how to read tables from files, as well as write and edit content, I would really appreciate it.