okay i know how to use fstream and everything, but the prolem is that I want to use a variable in ithe open part.
pretend all headers are included.
It works like this
but when I want to use a variable for the file it will read it does not work/
exp. using variable
string text = "text.txt";
it does not work, any helpful hit please.