I am migrating a program from C++ to C# and have encountered a difficulty in
reading the data files. For example, when the data file looks like the
following:
75000 77270
7900 8030
*Note that the spacing between the numbers are tabs, and there is a return
between subsiquent lines.
The C++ code to read this is the following:
ifstream InputFile("ActInput.inp");
InputFile >> SpadaVol[0] >> SpadaMaxVol;
InputFile >> ChapVol[0] >> ChapMaxVol;
I understand the use of StreamReader to read a line, as there are many posts
and instructions on that topic, but I am unable to find a methodology to read
tab delimited or space seperated files (with a variable or consistent number
of spaces). Most annoyingly, there is a broken link in a post to a csv (and
apparently tab delimited) file reader.