Assigning values from a file
I need a part of my program to read an integer value from a text file (there's nothing else in that file) and assign the found value to a number. That number (bookspan) is not a member of a class...is this operation possible? I've written part of the code, but cant understand what to put in the critical part.
bookspan=bookspan; //Oh wait, that doesn't make any sense...
cout<<"\nBookspan is "<<bookspan;
cin>>bookspan; //Makeshift 'pause my program' line