Update writing data in files