in reply to Re: read from a file and write into the same file
in thread read from a file and write into the same file

It is considered better to use <code> ... </code> tags rather than <pre> ... </pre> around code. This will allow easy downloading of the code and assures sensible wrapping of overly long line of the code. Also I have a code colorizer which needs <code> ... </code> tags to know what to colorize.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: read from a file and write into the same file
by chatur (Acolyte) on Mar 03, 2008 at 11:41 UTC
    Thanks for your comment and updated it