Hi there. I am working on a new automation process and need help. I would like to know how to read each line (/ row) in a notepad file and execute a command based on what the line says (with a sort of ‘anchor base’ function). After executing the line, to delete it and move to the next line and repeat the cycle. I am pretty new to UiPath and therefore require some assistance.
I did what you told me and it worked but when I use the ‘For Each’ activity it returns all the lines * the amount of lines there are in the file. How can I make it read each line individually and make it follow its command? Say f.e. BTCUSD BUY is a line, how can I make it carry out the command? Is an ‘Anchor base’ activity useful?
@VladP , Could you let us know what do you mean by this ? For Confirmation on the Split Method working properly, Could you maybe use a Write Line Activity and Check the Count of values present in strArray variable like below :
For Data that is in the form of Text/String, we use String Manipulation methods or Regex Methods to get the Desired result.
But what should your Command do with the line/each line ? What exactly is the Output Required?
My command should look through each line and navigate on E-Toro to the currency in the line and then execute a position based on BUY, SELL or CLOSE. So if it says BTCUSD BUY, I want it to look through my watchlist on E-Tor, find BTCUSD, and then click BUY on the currency.
@VladP , Maybe we would require more insight on the Data to understand better, Could you Provide your Text data present in some of the lines. So that we can visualize better and suggest you the appropriate solution.
Also, we do see there are steps which I assume involves UI Automation, Navigating to a Website on a Browser ? However we could keep this aside for now, and work on our String Manipulation/Check required.