Server writes data received to file.