#include <fstream>
#include <cstring>
using namespace std;
#include "InsertBook.h"
#include "InsertIndex.h"
|
|
|
int main( int argc, char* argv[ ] ) {
fstream book;
int offset;
book.open( "data.txt", fstream::in | fstream::out );
book.seekp( 0, fstream::end );
if ( ( offset = book.tellp( ) ) == -1 ) offset = 0;
book.close( );
InsertBook ( argv[1], argv[2], argv[3], argv[4] );
InsertIndex( argv[2], offset );
}
|
|
|
|