Before some months, i tried to make a community sity like you, which worked with txt files. There where usr.txt and pwd.txt files, where the usernames and passwords with be stored. Jets think that 5th username is in the 5th row of the usr.txt and the 5th password in the 5th row. when trying to register a new user, by writing two words in two lines into the username input box. So, after this, the new user's username in the 8th line will had to match with the 7th line where his password is stored. I fixed a lot from those bugs, till i desided to use a single txt file for all users details (username,password,age,sex,location,ect). And so for the messages and forum and chat. But still, with a small and accurate trick, an entire txt file could be ****ed up and make a mess up in all forum. Then i was bored, and shift+delete everything. I just want to say that it could be easy to damage the site. Anyway, wish your best.