function adc(file1,term)
% reading datas
fid = fopen(file1,'rt');
[AN, count] = fscanf(fid,'%i\t%i\t%i\t%i\t%i\t%i\t%i\t%i\t');
fclose(fid);
x=(1:621)';
AN=[reshape(AN,8,count/8)]';

if strcmp(term,"ps")
  eval('gset term postscript eps');
  eval(sprintf('gset output "adc.eps"'));
endif
  plot (x, AN);


