I am having a problem with ifstream and strings.
I have:
#include<iostream>
#include<fstream>
#include<string>
#include<cstring.>
#include<iomanip.h>
other declarations ..................................
......................
string filename;
ifstream fin;
cout<<"enter filename";
getline(cin, filename);
fin.open(filename.data());*****when compiler gets to this point
**it says data is not a member of string
I checked in my book and it says that s.data() is part of the string class. I was hoping that someone could help me to figure out why I can't compile past this point. I am using Borland C++ 5.02.
thanks