You might want to try "write -c file.txt" because you just end up making the file over and over, or you could use -d.