Hi Andrew:
You can write something like
impasc fname:="C:\Program Files\OriginLab\Origin8\Samples\Import and Export\ASCII Simple.dat"
options.partimp.partial:=1
options.partimp.lastrow:=10
where options.partimp.partial:=1 asks Origin to use partial import, and options.partimp.lastrow:=10 specifies the number of rows to be imported. More information, please read the impASC function of LabTalk help.
Regards to the second requirtment, what a pity that the Origin import wizard doesn't support "where" clause, so I am afraid you have to import all the data and extract what you want.
Thanks
Larry