I populated a temp from a query, and the temp table looks like, ttcomp.inum ttcomp.iname ttcomp.iadd There are 5000 records in this temp table and now i wanted to write in a CSV file. I think it could be done with output stream but i don't know how to implement this. Please someone help me in getting this. Continue reading...