Sorry to be a bother or anything with my assult of questions, but currently I am working on a class to handle files. The problem I currently have (and I'm sure it is something simple I am missing here) is that my header file needs the string class to be defined, and even though I included it, it still says it is not defined.
Visual Studio gives me this error:
And here is the header:
Error C2061: syntax error : identifier 'string'
As always any help you can offer is to great use to me.
bool Exists(); //Returns true if exists
string Read(); //Read file, returns contents of file if successful.
bool Write(string &sContents); //Write to end of file, returns true if successful.
bool Overwrite(string &sContents); //Completely erases contents of file with given contents, returns true if successful.
bool Move(string &sDir); //Moves the file to another directory, and changes the path stored in the object. Returns true if successful.
bool Copy(string &sDir,string &sName); //Copies the file to another directory. Doesn't change the path stored in the class. Returns true if successful.
bool Delete(); //Deletes the given file.