Why am I getting this ifstream error? April 14, 2023 by Tarik You’re missing #include <fstream> and you probably assign somthing to inFile which is not allowed.