How to read the txt file value and how to write the value in another txt file

Hi All,

I just create a one txt file and enter the one line value in that txt file. Like ‘Welcome’ and save it to the local storage. Then, I create a one sequence in UiPath studio. Generate one Attribute. That Attribute Name is Read text file. So I read a txt file. Then I was Confuse in this stage. but how to get that value?. Any one help to me.

image

Regards,
Sivaraman v

Hi @vsivaraman81

If your query is to save the data in the txt file in a variable…?

If Yes, then you are using Read Text file activity which is absolutely correct to read the txt file, open the properties of Read Text file activity and create a variable in the Output to field.

Then you can use that variable wherever you want.

Hope it helps!!

2 Likes

Hi @vsivaraman81 ,

Please set the Output property of read text Activity to store the value read from the file,
image
In the field you can create a variable to store using Ctrl+k

You can use the Write text File Activity to Write the Value from Read Text Activity.

Attaching the official documentation of those 2 for your ref.

Activities - Write Text File (uipath.com)

Activities - Read Text File (uipath.com)

Happy automating.

Thanks,
gautham.

1 Like

@vsivaraman81

check the thread

1 Like

hello @vsivaraman81
you can create output variable by CTRL+K and put log message to see the output
as shown below

txt_Forum

Regards,
Dheerendra Vishwakarma

1 Like

Hii,

Use this activity

Make sure to create an output variable of the Read text file.

Thank you.
Akhil

1 Like

Hi @Gautham_Pattabiraman .
Now its working Thanks.


Thanks all . @mkankatala , @Krishna_Raj , @Dheerendra_vishwakarma and @Anonymouss

Now its working. Your reply’s are very useful to me.

Thanks & Regards,
Sivaraman v

2 Likes

Happy to help always.

1 Like

@vsivaraman81 Happy Automation!

1 Like

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