posted 17 years ago
In this code snippet I take a source file and while I read it with a LineNumberReader, when I process a particular line, I do something special with the text (in this case I reverse it). While I read the file, I copy it to a temporary file. At the end I replace the original file with the new temporary file.
Another approach is to use a memory stream to store temporary information, before writing back to file.
Regars,
Edwin Dalorzo.