I want to add contents to a specific line(blank)in an existing file. I will describe this with an example.
In a file with 20 lines, the 5th line is blank. i want to write a word "hello" to this 5th line of this file.
How can i do that?
when i am opening the file in write mode and trying to do anything the whole data is getting erased.
Can any one please help by giving a tip.. This is urgent as i am stuck up at this point while doing an important enhancement.