double* DataOpen::readData(char* dataName)
{
FILE *file;
double textData[3];
file = fopen(dataName, "r");
int k, countIdx = 0;
while(fscanf(file, "%d", &k) > 0){
textData[countIdx] = k;
countIdx++;
}
fclose(file);
return textData;
}
반응형