// Programmed by William O'Brien <kernel@brunnet.net>. Essentially what
// I've programmed is a class that simplifies reading formatting input
// from files. I've made a main generic Retrieve class, and two others
// that are specializations for int and double. These should make this
// file pretty applicable as is for development.
// To use this you simply pass the file name, format string and pointer
// to buffer to store the value. The type of the buffer is passed to the
// class as a template parameter. For complete examples check the main
// driver program. Hope this could be of some use.
// Note: If you are going to use this I would definately recommend that
// you seperate the declarations and specialization declarations in a
// header file along with their respective definitions. I would have done
// so but I wanted things to be simple.
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
usingnamespace std;