Nov-10-2018, 01:18 PM
In the second case, the backslash escapes the closing single quote. As a result, the interpreter includes "+textfile+" as part of the raw string which renders .txt' into nonsense. You could put the backslash at the end of the path variable and it would work fine.