iegj:
i am doing this because ...
You misunderstand. What baffled me was the process you described of converting strings to integers to chars, which made no sense whatsoever.
iegj:
The format in the .TXT file is just the name of the file i want to create, for example: test.txt
In that case, read the string from the file and use that as the file name.