When I read in this file it reads in the entire line.
string filename ="f:\\date.txt";
FileStream f = new FileStream(filename, FileMode.Open);
StreamReader stream = new StreamReader(f);
int line;
int[] array = new int[15];
for (int i = 0; i < 15; i++)
{
line = stream.Read(); // header line
Console.WriteLine(line);
}
The line it reads in from the file is 001 10:00 ON
How would I read the line if so 001 is as int, 10:00 is a string, and ON is a string?