There is problem, why it occur? in split and append activity

when use split and append line

image

at write line it is fine
the lines are well divided

image

but, after append line
problem has occur

image

I want to separate p and 8 and make them into different lines

not same line before append line
suddenly merged

The other parts are fine, but it’s a problem only here

how can i fix it?

@sssim4567

Can you try adding Environment.Newline before that particular value and try please

cheers

use assign right?

where may i use that?

@sssim4567

in Append line instead of item try with

Environment.NewLine + item

This might add few extra spaces…lets check if that atleast solves the initial issue

cheers

image

instead of item → Environment.NewLine + item right?

i try but nothing has changed

the problem still exists

image

image

Hi,

Can you share your input string as text file with WriteTextFile activity?

Regards,

ex.txt (4.5 KB)

in This step

i use split(" "c) and append line

@sssim4567

Can you try this instead of using loop

String.Join(Environment.NewLine,D.Split(" "c))

and use write to text or append to text

Output from bot
exoutput.txt (4.8 KB)

Flow
image

Hope this helps

cheers

Hi,

In my environment, it works well.

For now, can you try the following sample?

Sample20230125-3L.zip (5.5 KB)

Regards,

i find what is problem

in text file the result is written at right down the previous result.
but i am continually looking for the result of the previous result so i can’t find the right thing

so finally my question is
i want to erase data already written in text file at the first time Flowchart
in excel, use excel application scope
and use delete range, can erase data that is useless

but i can’t find like excel application scope in text file
i think the way

  1. i open the “name” text file
  2. send hot key activity ctrl+a → delete → ctrl+s

but i can’t fine open text file acitivity…

plz help

i find what is problem

in text file the result is written at right down the previous result.
but i am continually looking for the result of the previous result so i can’t find the right thing

so finally my question is
i want to erase data already written in text file at the first time Flowchart
in excel, use excel application scope
and use delete range, can erase data that is useless

but i can’t find like excel application scope in text file
i think the way

  1. i open the “name” text file
  2. send hot key activity ctrl+a → delete → ctrl+s

but i can’t fine open text file acitivity…

plz help

@sssim4567

Instead of append use Write to Text and it would automatically delete if any data is present

cheers

thank, it is easy way.
just write text file

write “”

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.