0

how to compare two variable like one one is from file and one is during run time of program.i m making a project using file in c

my issue is that i want to compare two vairables. 1 is i am entering during run time of prog and another is stored in a file. its a part of my project using files

27th Feb 2022, 9:20 PM
Gurmeet Singh
Gurmeet Singh - avatar
1 Answer
0
reading from a file named "a": #include <fstream> using namespace std; int main(){ ifstream fl("./a"); int var; fl>>var; fl.close(); return 0; }
28th Feb 2022, 5:04 AM
GHOST mHBr
GHOST mHBr - avatar