Write the first line of the text file

Hello friends, I have to get the first line of the text file and write in an excel … would anyone know how to do it?

Hi @rildo13

Do you only need 1st line ?

IF only First line then use in Assign = System.Text.RegularExpression.regex.match(TextFileReadVariableName,“.*”).value

It will work only for your first line.

If you need all lines used Matches Func. In Regex

:v:

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