I am using StreamReader to read a File. With the code below I am able to read a whole line.
What I wonder is how it is possible to read a comma delimited file like these lines.
How will I put the delimiter ',' and also assign the values to the String^ and doubles ?
Mon,1,2,3
Tues,4,5,6
Wed,7,8,9
String^ line;
String^ Day;
double Number1, Number2, Number3;
//Create an instance of StreamReader to read from a file.
StreamReader^ sr = gcnew StreamReader( "C:\\File.txt" );
// Read and display lines from the file until the end of the file is reached.
while ( line = sr->ReadLine() )
{
}