Need help on text file

I have a text file. First i want to compare its first line, if it is “hi how are you” than i want to compare second line “with who are you”
Or is there any way i can directly compare second line of a text file.


Hope the following helps you.



You can read specific line,

Dim strLineText As String
Dim intLineNumber As Integer

myLine = File.ReadAllLines("D:\text.txt").ElementAt(LineNumber).ToString

Use invoke code activity and try.

Thanks for the help.
Can i read only 2nd word of second line of text file and compare it with another text file’s 2nd word in second line.
Please help

Hi @Rahul_Tomar1
please refer the xaml below for your reference
Use split conditions based on your inputs.

Main.xaml (9.8 KB)
project.json (1.5 KB)