I have below mention data
Ex:
Bala
4,satha st,
gobi
erode .
tamilnadu
robotic process automation-UiPath
I want to segregate the above data line by line and need to excel.
I have below mention data
Ex:
Bala
4,satha st,
gobi
erode .
tamilnadu
robotic process automation-UiPath
I want to segregate the above data line by line and need to excel.
Split(yourVar,VbCrLf)
This will give you an array with one element for each line.
Hello ,
linesArray = inputText.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
I want to write column by column
Can you please provide output what you want
Hi @BNK
→ Read Text File
dt_Output= (From line In str_Text.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries) Select dt_Output.Rows.Add(line)).CopyToDataTable()
dt_Output datatype System.Data.DataTable
→ Write Range Workbook
Regards
Hi @BNK
→ Read Text File
lines= str_Text.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
lines is of Array(System.String)
→ Use below syntax in assign:
Output= String.Join("/",lines)
Output is of DataType System.String
→ Generate DataTable from Text
Sequence11.xaml (11.2 KB)
Regards
How about the following?
Input.Split({vbCrLf, vbLf}, StringSplitOptions.RemoveEmptyEntries)
Final.xlsx (6.1 KB)
Sequence1.xaml (12.9 KB)
Cheers!!
I have all the input data in excel.
Pleas check the attached
Output - Copy.xlsx (7.9 KB)
excel
expected output
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.