Escape
to
Pokagon

Data File Test Implementation in C++

This initial version allows the programmer to verify the correctness of the data input routine for obtaining the room information from a file. All the student should be doing at this point is opening the file, read a record of information, display all fields of the record to the screen, then close the file. Make sure this routine works before going on with the adventure engine. One side benefit is that you can utilize this program later on to verify the correctness of any new room data files that are constructed.
   
Resources:  
Access to the source code files is limited to faculty members only; links are given to the code request page with an indication as to how large the files are. All have access to the sample room data file.

Adventure Engine Code:  
Main program datafiletest.cpp (2 KB)  
Generic data file exampleRoomData.txt (3 KB)  
 

Head back to Pokagon....

Follow the twisty link back to the nifty adventure assignment....
Web page created 9 February 2002 by John K. Estell, ECCS Department, Ohio Northern University.