Tested file writing (txt)