edit file dat.txt