Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    1,520

    Re: Output problem (newbie)

    I guess what happened is you created a file and wrote to it. Then in the closeF() method you created a new file with the same name and wrote nothing to it destroying the first version.
  2. Replies
    5
    Views
    1,520

    Re: Output problem (newbie)

    I got output (1 byte) when I ran your code (except I moved the close to the outputF() method).
  3. Replies
    5
    Views
    1,520

    Re: Output problem (newbie)

    The f object in the close method is NOT the same as the f object in the write method.
    Close the output file after writing to it or have a reference to the object that was written to when closing...
Results 1 to 3 of 3