Using pointer,any programming language can do this.
But it's dangerous if you do the job incorrectly,it's possible to damage data.
First to find out the line you want to replace,then build new line with same length,last write new line to file in corresponding position.
You can google
ython file pointer.Beacause i used python.