Hi,

Let's say if have the following text file:
Code:
Line 1
Line 2
Line 3
Line 4
...
Line 10
Is there any way I could add something "Line 10" so it said something like "This is Line 10", but nothing else? Basically what I'm asking is how to add things to certain lines instead of just appending to a file. Can anyone help me? Thanks.

BTW, if possible I would prefer fstreams (I'm not sure what else there is), but if not that's ok.