X
xontrn
I have a text file that is just a list of integers separated by a
space. In C++ I could do something like:
ifstream fin("filename.txt");
int x, y, z;
fin >> x >> y >> z;
to read the integers in.
How do I do that in C# with .NET IO?
Do I have to just read it all in as a giant string and then parse the
string?
space. In C++ I could do something like:
ifstream fin("filename.txt");
int x, y, z;
fin >> x >> y >> z;
to read the integers in.
How do I do that in C# with .NET IO?
Do I have to just read it all in as a giant string and then parse the
string?