Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I wrote an application which uses text files. I know how to read and write into these files. But when I already have put some text in these files, I want to add a new line of text between the text that is already in these files. So I want to jump to a line and put the new line of text at this line between the other lines of text. The same counts for reading. How do I read the text from a line somewere between the other lines of text and put this line of text in a string variable?
Does anyone know how to do this?