//
// (c) J. Dean Brock, 1999, 2002
//

#include <iostream>
#include <cstdlib>
using namespace std ;

#include "btree.hxx"

char *Usage = "Usage: bcreate btfile" ;

void main(int argc, char *argv[])
{
  bTree B; 

  if (argc != 2) {
    cerr << Usage << endl ;
    exit(1) ;
  }

  B.create(argv[1]) ;
  if (B.io_ok())
    cout << "Btree created in " << argv[1] << endl ;
  else 
    cout << "Btree creation failed on " << argv[1] << endl ;
}
