Hello, I am trying to extract specific data from txt files to a datatable. The txt format is similar to the following, (accounting) but with more lines
"ASSET1 … 001 XXXXXXX
ASSET2 … 002 XXXXX
Hello, im from Spain
I am learning Uipath
ASSET3 … 003 XXX
ASSET4 … 004 (EMPTY)
Hello, im from Spain
I am learning Uipath
LIABILITIES1 … 005 XXXXX
(…) "
I just want to extract the numeric data (XXXX, not 001, 002,…) to a data table. I have thought that I can remove some characters that I don’t need (.) with “replace (”.“,” “)” And remove some lines that contain useless text. (hello, im from …). How could I erase these lines? RemoveAt (3)? The format of all the txt is the same, same lines with the same information each one, except the amounts, which as you can see, when it is = 0, it does not contain quantity. My goal is to transfer the amounts (XXXX) to a table (in lines or columns) to later copy them to an application. I think I have this Ok. Any ideas? Thank you very much!