Prince

Prince

  • NA
  • 12
  • 0

NEED HELP: array of struct to read input file

Jan 22 2010 11:24 AM

I need to read 10lines of data containing 3fields.this is my code so far.....need help

 
struct Date
{
int Month, Day, Year;
}





static void Main(string[] args)
{
//This file was created with the Add New Item icon on the toolbar
StreamReader textReader = new StreamReader("..\\..\\Date.txt")
//array of struct to hold data from text file
Date[,] mydate = new Date[10, 3];
Date[indexcount, arraycount].Month;
Date[indexcount,arraycount].Day;
Date[indexcount, arraycount].Year;
//array counter
int outerloop = 0;
int indexcount = 0;
int arraycount = 0;

Answers (4)