[cs13001] Confused on Lab 7 File

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Oct 15 18:17:29 EDT 2012


> Professor,
> I can't seem to figure out how to have my program receive the input from
> the database.txt file. I know I am supposed to use ifstream and ofstream,
> but how do I get my program to read the .txt file and be able to output the
> correct strings?


Here is an example on the course's webpate. It inputs three integers
from an input file file, adds them together and outputs the sum into
an output file.

   http://vega.cs.kent.edu/~mikhail/classes/csi.f12/Examples/Io/sumthree.cpp

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list