2
You can do it this way
string cpf = File.ReadAllLines(@"caminho\arquivo.txt")[3];
in case is passed the line index(3 because the indicies start at 0)
Another alternative is to put all lines in a list of string
and then take the desired element
List<string> linhas = File.ReadAllLines(@"caminho\arquivo.txt").ToList();
string cpf = linhas.ElementAt(3);
The CPF and Email line is always the same?
– Francisco
yes, it’s always the same
– Arthur Luiz