Deneme::Deneme(string FileName){
fstream textfile;
textfile.open(FileName);
}
This gives me an error, but when I type textfile.open("randomname"); instead of textfile.open(FileName); there seems to be no problem. Why is this? It might be an easy question but I'm a beginner and couldn't find the solution of this.