>I would avoid of load the whole file in memory and then printing it line-by-line..
Read a line, process it, and write it to a temporary file. Then delete the original file and rename the temporary.
>is it possible ??
It's hard to say. You talk about appending to a row, but your description of the desired result suggests that you want to transpose a matrix, which makes your storage and performance requirements more difficult to meet.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004