I have a file named abc.txt. I want to insert the text line at line number 10 such that the content of line number 10 must be in line 11 and so on.
How do I, do this opeartion ?

Treat with array of strings, and insert into this array and when you need to reflect this changes use foreach (string s in urArrayOfStrings) { Write in your txt file}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.