So what is the output from your program, "Writed text file" ?