in reply to Re: Writing to file
in thread Writing to file

Well, I get no errors, the program runs just fine. It created the output file, but there is nothing inside the file when the program stops. If I take out the line then the program won't run,so I am not sure how you want me to Test my Hypothesis.

Replies are listed 'Best First'.
Re^3: Writing to file
by Anonymous Monk on Mar 18, 2011 at 21:37 UTC

    Debugging is not a magical process that only monks can achieve... You just need to learn the common tricks, and apply some imagination.

    For example, you're writing to a file, and its not working. Print out all the return values and input values as you go. And trim it down to a script that only writes a canned string to that file in order to eliminate possibilities.

    Keep chopping off code until the problem either goes away or becomes trivial.