You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//* How to read each string that is written in above file.
ifstream fin;
fin.open("z.txt");
string line;
while (getline(fin, line)) // Here getline is a looping function where fin is the file & line is a string , & fin means to read whole line & copy it into line. & it will stop where our file is ended.