Question
1
Replies
94
Views
Posted: March 26, 2019
Last activity: March 27, 2019
Closed
Illegal character error in path, when reading a textfile
I am using Pega Robotic Studio 8.0.2020.0
I am using the ReadAllLines function from System.IO.File
But I am getting an error about illegal characters in path.
I am testing the following combinations:
C:\Weblinks.txt
C:/Weblinks.txt
C/Weblinks.txt
"C:\Weblinks.txt"
'C:\Weblinks.txt'
I was able to use the format below without exception. You should not need the quotation marks. You should use drive letter, colon, backslash (the one that leans backwards), folder, backslash, file name with extension
C:\Users\superman\Desktop\New Text Document.txt