Do you see anything wrong with this if so let me know
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
int main ()
{
int num;
ifstream AFile;
AFile.open('a:\\OddFile.txt');
AFile << "Enter an integer number please: ";
cin >> num;
If (num % 2 = 0)
AFile << num << endl;
Else
AFile << num << endl;
system("pause");
return 0;
}