write & read textfile on server