I’m working on using files for input, and things are very much NOT working. For somereason, despite inData being open two lines prior, by line 21 it is not open
Repl link: https://replit.com/@ThomasWarenski/C-M02-Programming-Assignment-1#src/main.cpp
I can’t even get “yay” to output to the console here.
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;
int main{
ifstream inData;
inData.open("myfile.txt");
if (inData.is_open() ){
cout << "yay";
}
}