When reading a TXT file, from accounting postings exporting by a third-party system, my problem is in the lines that have the number.
VLR REF SIT ANYTHING N ° 1834 MORE TEXT
Using the class StreamReader
as follows
using (var reader = new StreamReader(@"D:\Projetos\Syns\Documentação\Contabilidade\exemplo.txt"))
{
string actual = reader.ReadToEnd();
Assert.AreEqual("VLR REF ALGUMA COISA Nº 1834 MAIS TEXTO", actual);
}
What I have for return in the current string is
VLR REF SIT ANYTHING N ?? 1834 MORE TEXT
I need to return the value equal to the text file.
What kind of