The result of this operation constitutes, however, a security breach for your password privateness! The cleartext output can be read by everybody who obtains access to your computer or the data medium where you store it. Moreover, normal erasing of such a file is not enough to securely remove password data from the sight of inspectors.
You should think therefore very carefully about necessity and consequences of your actions before proceeding to create a CSV output file! We recommend to perform this only if there is absolutely no other way to deal with your task or problem. You may also benefit from the "Secure File Wipe" tool available in JPasswords.