#include "bu/file.h" #include "bu/nids.h" #include "bu/nidsstream.h" int main( int argc, char *argv[] ) { if( argc < 2 ) { printf("usage: %s \n\n", argv[0] ); return 1; } Bu::File fOut( argv[1], "wb"); Bu::Nids n( fOut ); n.initialize( 1024, 5 ); Bu::NidsStream s = n.openStream( n.createStream() ); Bu::FString sBuf("Hey there, man...uh...how's it going?"); s.write( sBuf ); return 0; }