Simple PHP class for reading and writing to text files