char fileName[100];
cout <<" please enter the name of the data file "<< endl;
cin>>fileName;
ifile.open(fileName);
1 how to put data in the filename
(how to put numbers in the filename
e.g lets name it sample.txt
where to put this sample to be readen by the program
2. how to read the numbers from the file name
in the problems i dont know how to do it like how to read from file and calculate the average
thanks in advance