import data into matlab

Hi, I have a text file with space separated numbers that I need to import into Matlab to do some processing on. Can not use the "load" command to import the whole file because it's way too big (5Gb). Text file looks like this:
1.2 4.2 5.2 5.33 6.45 7.64 3.45 7.34 ……..
2.34 5.23 .235 .2343 2.34 3.4 3.42……..
and so on with
What I'd like to do is be able to read in and Store first 10 values of each row into a column vector. Then the next 10 values of each row and o on…
to have something like:
X=[row1 (1 thru 10); row2 (1 thru 10);…]
or more generally,
y=[row1 (start position thru end position;…..]
Any help appreciated,
Thank you!

fid = fopen('XYZ.TXT','rt');
fseek(fid, 0, -1);  %rewindresult = textscan( [repmat('%*f',1,P-1) repmat('%f',1,Q-P+1) '%*[^\n]'], 'HeaderLines', H, 'CollectOutput', 1);cols.(sprintf('C%d_%d',P,Q)) = result{1};clear result
fclose(fid);