As context, this is for homework. I'm trying to open a file which the user is supposed to enter, I've mostly figured out how to do that. I was trying to test my code to make sure it's working correctly, but for some reason it's outputting a bunch of numbers instead of the expected number. There's no error messages, just the weird number.
`#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream input; //in
ofstream output; //out
int num;
string fileName;
int* point;
/*
cout << "Enter input file name: ";
cin >> fileName;*/
input.open("HW3_input.txt");
input >> num;
cout << num;
input.close();
return 0;
}`