Could somebody please help me with <fstream.h>, I am a new programmer in C++ and I would aprreciate any help, if you are willing to help please read on!
I need to know how you get variables from a .TXT file and use them in a program, for example:
Say i have declared int x - and i want to get the value of x from a text file, how is this done?
My Second problem is that i only know how to read in one word at a time from a .TXT, like in the tutorial.......
text >> str;
cout << str;
.......Or however it is. Could I please be told how to get the whole text document printed to the screen at once.