Hi,
I've been trying to read the file content from the file path entered by user at run time. However i always end up in error.
Help needed...
char name[100];
ifstream infile;
cout<<"Enter filename to open";
cin.getline(name,100);
infile.open(name);
if(!(infile.is_open()))
{
cout<<endl<<"File Not Found";
}
i'm not using relative path, instead the full path
You quick reply will be appreciated
thanks