Not 100% sure what you're after here. I presume it's something a bit more complex than just
select fld1, fld2, fld3, fld4
from tbl1
where fld1 = 123 and fld2 = 'abc' ?
But from your question, I can't see what else you want. Is it the transfer to text file that you are having trouble with? Please provide a bit more detail.
Regards
Phil