code: public int expect(String Data, int NumBytes)
  	{
  		byte target = 0;
  		int cnt = 0;
  		try
  		{
  			while ((NumBytes--) != 0)
  			{
  				target = file.readByte();
  				if (target != Data.charAt(cnt++)) return DDC_FILE_ERROR;
  			}
  		}
  		catch (IOException ioe)
  		{
  			return DDC_FILE_ERROR;
  		}
  		return DDC_SUCCESS;
  	}
docs: Expect NumBytes data.