Convert book.cpp to use C++ I/O

Instead of old C stdio.h

Also small code clean up while there.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-09-19 13:37:28 +01:00
parent 1373a00187
commit c034cce27c
2 changed files with 59 additions and 53 deletions

View File

@@ -32,6 +32,7 @@
//// Includes
////
#include <fstream>
#include <string>
#include "move.h"
@@ -74,7 +75,7 @@ private:
void read_entry(BookEntry &entry, int n) const;
std::string fileName;
FILE *bookFile;
mutable std::ifstream bookFile;
int bookSize;
};