closes test.txt