I am working on a project regarding generating data from a Monte Carlo experiment. As of right now everything is working fine... except for one thing. What I need the program to do is to write or save the data values generated to a simple csv or text file. The data is stored in an ArrayList since the amount of generated values will be determined by the user (or in this case, be determined by the number of repeated trials the experiment is executed).
So far, though, every time I compile and run the code, the actual file is saved but NOTHING is in it! It is nothing more but an empty text file. Here is my code below. I know it looks like a lot but to help simplify the problem I have bolded and italicized the problematic code for you.
Again, as I said before, I know it looks like a lot but I'm having difficulty with this one part. Other than that it would work as expected.
Hope to hear from you soon.
Joined: Jul 05, 2011
Ok... so much for bolding and italicizing... :/
Where you want to look is where the method savaDataOnDisk() is at, on line 236 ff. Then there is one more line of code in the main(), referring to the method, on line 341.
Again, thanks everyone. Hope this isn't too much. I just posted everything so that way if and when you decide to compile it yourself, you don't have any problems doing so.