S
suresh
Hi,
I wrote a code like this and it failed to read from file. My question
what is the shortest code to read from a file and populate a vector?
vector<double> d;
ifstream in("myfile.txt");
copy(in.begin(),in.end(),back_inserter(d));
thanks
suresh
I wrote a code like this and it failed to read from file. My question
what is the shortest code to read from a file and populate a vector?
vector<double> d;
ifstream in("myfile.txt");
copy(in.begin(),in.end(),back_inserter(d));
thanks
suresh