private void writePage()		// writes page information
	{
		writeNumber(0,2,attrib,false);
		writeNumber(0,2,key_cnt,false);		// count of keys in this block
		writeNumber(0,4,left_page,true);	// left node or -1
		writeNumber(0,4,right_page,true);	// right node or -1
		for(int i=0;i<key_cnt;i++)
			{
			// write keys
			try { fidx.write( pgC[i], 0, key_len); }
			catch (IOException e) { e.printStackTrace(); }

			writeNumber(1,4,pgR[i],false);
			}
		writeChars0(500-(key_cnt*(key_len+4)),"");
	}