Hi, I'm trying to make a program that will write to a file and tell it that the next time that the program is run to not do the first part of the program.
fstream install;
//this is what all of the tutorials say to do.
install.open(ready.txt);
//this is supposed to open the file for writing and reading (this is an fstream instance so //the default is to have both)
if(install==is_open())
{
cout << "it worked!";
}
else
{
cout << "fail";
}
when I run this, it say that: "variable ‘std::fstream install’ has initializer but incomplete type"
Does anyone have an idea?
even the program that the tutorial provided isn't running... what am I doing wrong (This process has worked before but I can't figure out where that program is...)