Ok, I am running into a brick wall so time to ask-
I have a test driver. Up to this point it runs on one data file, but I wanted to make it able to run a series of tests. So I have made a file that contains the full names of all tests I want to run
(e.x. c:\test1 c:\test2)
So I fopen this file and want to start reading these character arrays into... an array. Here is where it gets sticky. I tried making a two dimensional array and I can't seem to fill it in. Here is my code snippet:
if ((Data_File= fopen(Tests_File,"r")) != NULL)
{
// while we are still in test input data section, loop
stop=0;
test_num= 0;
while (stop == 0)
{
// Get test location out of file
fscanf(Data_File, "%s", &File_Location);
if (!strcmp(Command,"end:")) stop= 1;
else
{
strcpy (Test_Name[i][0], Command);
test_num++;
} // end else
} // end while
} // end if
fclose(Data_File);
for (i= 1 ; i <= test_num ; i++)
{
Run_Test(Test_Name[i-1]);
}