tags:

views:

42

answers:

1

Input = Line number.

Output = Replace the line at given line number by new line.

example =

a.txt

aaaa
bbbb
cccc

input= line number=3 replace with dddd

output

aaaa
bbbb
dddd
+2  A: 

Take a look at this tutorial and java.io.RandomAccessFile

Bozho