for ii = 1:3
  val = uint8(192+ii)	
  n = 1; 
  a = ones(n,1)*val;
  f = fopen('a.a','wb');
  cw = fwrite(f,a,'uint8')
  fclose(f);

  f = fopen('a.a','rb');
  [b, cr] = fread(f,n,'uint8');
  fclose(f);

  cr1 = cr
  x = a(1)
  y = b(1)
  disp('------')
endfor

