0
Why doesnt getline() work with files?
I tried #include <fstream> #include <string> ifstream Myfile("file.txt"); int temp;. //to get and store file values temporarily while(Myfile) { getline (Myfile, temp, ' , '); // to delimit CSV } How can I fix this?
1 ответ
+ 1
What exactly happened when you executed it? (Btw. the playground doesn't support file interaction as far I know)