Supposing I have a txt file like:
%Title
%colaborations Destination
1 123
2 456
3 555
%my name Destination
Joe doe $re Washington
Marina Panett $re Texas
..
Laura Sonning $mu New York
%other stuff
How can I save in array
array{
("Joe doe $re"),
("Marina Panett $re"),
...,
("Laura Sonning $mu")
}
As I need to skip:
%Title
%colaborations Destination
1 123
2 456
3 555
until I find
%my name Destination
I would start reading until end of file or I find something with "%"
I was thinking to use string txt = System.IO.File.ReadAllText("file.txt");
but I do not think is a good idea to read all txt as I only need some parts...