I'm writing a program that keeps a text file which holds 10 lines. On each line will be a time, and a filename. The program will run in the background and at the specified time will play the sound file. I'm trying to load times from a text file into a variable. Here is my attempt, but nothing goes into the variable ×.
SetTimes works fine, of course, but not LoadTimes. After LoadTimes is run, the variable times is still empty.
for(x=0; x<=10; x++)
times[x] = "a";
//File = fopen("times.txt", "rb");
//if(File != NULL)
//MessageBox(NULL, "works", "test", MB_OK);
for(int x=0; x<=10; x++)
//fread(×, sizeof(char*), 1, File);