let f = open("file.txt")
for lines in f.lines:
if fileExists(path & lines):
continue
echo "copying: " & lines
try:
copyFileToDir(lines, path)
except Exception as e:
echo "-Err!"
f.close()
file contents like: Monne » Genealogie Online
"»" is the crulpit. Get errors because got this at stdout: "copying: Monne � Genealogie Online" So Nim doesn't find the file.
If I output the special character directly like this:
echo "Monne » Genealogie Online"
stdout prints the character like it should.
What is the problem? How can I set the characterset?