I am using a csv file to hold global variables and constants for an automation project. I know it’s common to use the 3 worksheet config.xlxs (see: How to use a Config file in UiPath - Tutorial - YouTube), but I think it’s easier to use a csv.
My config file is named config.txt and looks like this:
I’ve been running some tests:
- Use Read CSV and and do all get/set operations on the config file using data table activites, or
- Use Read Text File and do all get/set operations on the config file using string handling activities.
Right now I’m testing option #2. Using string handling I can find and return existing values in the config file. There is currently 1 snag. When I use Read Text File to get the config file into a UIPath string, it looks like this:
This is not a huge problem since I can test the config file string with string.contains(“something”) instead of string = “something”, but could someone please answer 2 questions?
- Why is UIPath putting an @ symbol into the Read Text File output string?
- If you look at the first line of the file you can see a squiggle under the ‘y’ of ‘yadayada’. When you mouse hover over the squiggle there’s a popup that says “End of statement expected.”
I thank you, Mesdames et Messieurs, for your kindly informification.