I am trying to output the result from the void function into the file that is user generated. The problem is it works without outputting to a file but once I try to output to a file it does not work. Any help? Here is my code.
http://codepad.org/yVbi0uRN