I have a large text file sized 1MB or over.
I have to modify just the first or second line and the remaing remains as the same.
I tried LineNumberReader and it works fine.
(read each line and the modify first or the second line
and append them to stringbuffer and toStringed it.)
but I'm wondering there is a better way.
and I want to know the rule of thumb of handling large text files in Java.
Thanks.
I have to modify just the first or second line and the remaing remains as the same.
I tried LineNumberReader and it works fine.
(read each line and the modify first or the second line
and append them to stringbuffer and toStringed it.)
but I'm wondering there is a better way.
and I want to know the rule of thumb of handling large text files in Java.
Thanks.