Write a File and Load It
Hello I need help to write a file containing a variable and at start load it,
Im suing that but I dont know why dont writes in the File
Thanks!
Im suing that but I dont know why dont writes in the File
Thanks!

Code:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main(){
int var;
fstream File("C:\File.txt");
for (int x=0;x<10;++x){
cout << "Enter Value " << endl;
cin >> var;
File << var << endl;
}
File.close();
}

