fid = fopen('TTEST.sps','a');

mis = '/MISSING=ANALYSIS';
var = '/VARIABLES=score';
cri = '/CRITERIA=CI(.95).';

for v = 1 : 140
    for s = 1 : 140
       fprintf(fid, 'T-TEST GROUPS=videos(%d %d)\r\n %s\r\n %s\r\n %s\r\n \r\n', v,s,mis,var,cri);
    end
end
fclose all;