Your code already had lots of printfs which were printing to the console. You wanted that output to go to the file instead. That code that I posted redirects the output from going to the console to going to the file. So you just use your printfs after that code but they will be writing to the file rather than writing to the console.
That is the concept of redirecting.
Hmmmmm again I have a problem with the program.....Now I am able to get a separate .CSV file in my project but the problem is the data what I wana insert into that is not there....Can you tell me how to get the .CSV file with my required data...
ya....I haven't forget that....but I have solved the prob and it seems to be very simple...slappe d of myself becoz of the prev thread,,looks like funny..I just forgot one '\' and for that I am struggling from half a day. Now it is OK....
Comment