int main(){
// I have an error in the next line
read_file("F:/2nd year_2/Data structure 2/books/lecture-26.pdf");
return 0;
}
string read_file(char* address){
string line;
ifstream myfile (address);
if (myfile.is_open())
{
while ( myfile.good() )
{
getline (myfile,line);
cout << line << endl;
}
myfile.close();
}
return NULL;
}
this program have an error and I think the problem is the file path
so how can I write it correctly