I am trying to put query results in txt file. I know it will overwrite this txt file if I put <cfoutput query="queryname"> around <cffile>. Does anybody know how can I go around it? My query results in more than one record, but so far I get only one record in my TXT file.