I keep getting below ofstream error.
[Error] no matching function for call to 'std::basic_ofstream<char>:pen(std:fstream&, std::string&)'
What could be wrong here? Is it compiler issue? How to fix it?
Below is my code.
Code:ofstream outputFile; ofstream fs; // create a name for the file output std::string filename = "test.csv"; /int i; int main(int argc, char** argv) { // create and open the .csv file fs.open(outputFile,filename);