add text to text files and read files from server