basic file I/O issue
- From: xontrn@xxxxxxxxx
- Date: Wed, 17 Oct 2007 18:24:24 -0700
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?
.
- Follow-Ups:
- Re: basic file I/O issue
- From: Hilton
- Re: basic file I/O issue
- From: Peter Duniho
- Re: basic file I/O issue
- Prev by Date: Re: How to populate a treeview from a dataset
- Next by Date: Re: About VC# 2005 express "error list"
- Previous by thread: Re: serializing a COM object
- Next by thread: Re: basic file I/O issue
- Index(es):
Relevant Pages
|