pp = fopen('testfile.txt','rt');
size(fscanf(pp,'%f,%f'))
fclose(pp);

pp = popen('type testfile.txt','r');
size(fscanf(pp,'%f,%f'))
pclose(pp);