I am working with a project but I can't seem to read from a file to a double. Please help me.
This is my code:
std::ifstream loadFile1("voltagelevel.txt"); if (loadFile1) {
while (loadFile1&&loop<20)
{
loadFile1 >> voltagelevel[loop];
textprintf_ex(screen, font, 50, 100+(loop*10), makecol(255,0,0),-1, "%ld", voltagelevel[loop]);
loop++;
}
loadFile1.close(); }