Quantcast
Channel: New Topics
Viewing all articles
Browse latest Browse all 4617

text file not working?

$
0
0

Im new to c++ and learning text file processing and for some reason my text file isnt working help code below:

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
       ofstream outFile("c:\numbers\numbers.txt",  ios::out);
       outFile << 100 << endl;
       outFile << 90 << endl;
       outFile << 80 << endl;
       outFile << 70 << endl;
       outFile.close();
       return 0;
}

Viewing all articles
Browse latest Browse all 4617

Latest Images

Trending Articles



Latest Images