2 edited tags
1

# Import data from first/last 100 rows of a file

If one wants import data from the first three rows of a file "myfile.data", one can use the command

Import["myfile.data",{"Data",{1,2,3},All}];


However, if I want import the first 100 rows of the file, is there a quick way besides

Import["myfile.data",{"Data",{1,2,3,4,5,....},All}];


And what about the case I need import the last 100 rows of the file?