in reply to Contents of file not printed to STDOUT

you forgot to seek after updating the file (print)

Also, FYI, you have a question, not a doubt, see "Question" vs "Doubt"

  • Comment on Re: Contents of file not printed to STDOUT

Replies are listed 'Best First'.
Re^2: Contents of file not printed to STDOUT
by AnomalousMonk (Archbishop) on Jan 31, 2011 at 18:26 UTC
    ... you [nt2282] have a question, not a doubt ...

    Actually, nt2282 ought to have neither, as 'Basic doubt/question' is a very poor choice for a question title. Better, perhaps, might be something along the lines of 'Contents of file not printed/written/appended to STDOUT'.

    As nt2282 posted the OP as a registered user, it is possible for him or her to go back and change the title to a better one. (Update: But see GrandFather's Re^3: Contents of file not printed to STDOUT for even better.)

    Otherwise, I have no problem with the use of either 'question' or 'doubt' in such a context. I value clarity most, and I accept 'doubt' without question.

      The OP can do that, but can't rename replies that have inherited the original title. A better solution is for the node to be considered for retitling and have a janitor apply magic which does rename replies as appropriate.

      True laziness is hard work
Re^2: Contents of file not printed to STDOUT
by nt2282 (Novice) on Jan 31, 2011 at 17:46 UTC
    how can i do that. i am clueless now as the code looks correct to me.
Re^2: Contents of file not printed to STDOUT
by wfsp (Abbot) on Feb 01, 2011 at 08:45 UTC
    No, the OP has a doubt. More, a basic doubt, nay, a very basic doubt. You are fighting a battle that has been lost. You and I may not like it but that doesn't come into it.

    It's a friendly, polite post with code that shows what the problem is. nt2282++, (although I do agree that the title could have been better).

    You succinctly identified the root of the problem, good for you. Just leave out the lectures. :-)