function [ samps ] = readWiserdFile( filename , limit = 100000000)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
  fid = fopen(filename);
%    i = 0;
%    while ~feof(fid)
%        a = fread(fid, 1, 'float32');
%        b = fread(fid, 1, 'float32');
%        if (length(a) == 1) && (length(b) == 1)
			       %            i = i + 1;
%            samps(i) = a + b * 1i;;
%        else
	   %            length(a)
			  %            length(b)
%        end
%    end
%aa = fread(fid, [2, 100000000], 'float32');
%ss = fread(fid, [2, 100000000], 'float32');
ss = fread(fid, [2, limit], 'float32');
samps = ss(1,:) + 1i .* ss(2,:);
fclose(fid);
end
