Thanks for your answer.
I still have a problem.
When i run the program it creates no text file.
I don't understand why.