Need to extract Multiple lines of text from a .txt file

I have looked through several similar questions but I don’t have the activities mentioned. I have a text file that got its text from a MS Word file. Within that txt file, there is an area that has multiple lines of text. Obviously using get text only gets the one line of text. I’ve seen answers where I have to write code but it’s using activities like assign or save for later. Then I found those were replaced with Variable. I only have Set variable Value. I am taking an educated guess that I would use the advanced editor to write this code but I am not sure what the code should be as I don’t think the codes I have seen particularly apply to my situation (plus this is my first time writing a true use case automation for my company as I was recently certified and they gave me an easy but difficult task because my training has not included some of the things I need for this but have been able to figure out on my own). In short, what is the activity (preferable over having to write code) that I need to use to extract multiple lines of text from a text file so that I can input in an Excel cell? If the only way is to have code I can understand it…I think.

You can detect the read the text file from the word document
image

Use generate data table .Add that .Text datain data table and now u can koop through each row

@S_Nitin now its working then mark you solution as working, also add screenshot which help other

Hi S_Nitin. Thank you for your reply. I am happy to report that I do have the generate data table activity. I have never used it before so would you be able to walk me through it?

Hi Mukesh. I don’t have an activity that says Word Application Scope. Thank you for your reply though.

Mukesh I have version 1.18.1 of the Word activities and the Word Application Scope activity does not show up.

S_Nitin Can you pleas elaborate on how to use it.