Insert string in to known position of text
Posted: Thu Sep 10, 2009 12:22 pm
Help me please. And sorry for my bed english
.
I wan't to insert a few lines in to the text file (size about 1MB), at known position, but i did not found special function. Should i use replace functions?
And addition for those who can understand my english
There is a fairly large text file (size about 1 MB) in this file i want to insert a few lines (not in the end), then save the new file. File updates more than once. So I decided that the smallest server load will be, if not to replace one piece of string the new line, simply insert a new line in the source file at know pos.
But reading the features, I realized that the special function to insert a row in a certain position - no. So the question may be all I did was wrong? Maybe there is such a function, help to be more competently implement the decision.
I wan't to insert a few lines in to the text file (size about 1MB), at known position, but i did not found special function. Should i use replace functions?
And addition for those who can understand my english
There is a fairly large text file (size about 1 MB) in this file i want to insert a few lines (not in the end), then save the new file. File updates more than once. So I decided that the smallest server load will be, if not to replace one piece of string the new line, simply insert a new line in the source file at know pos.
But reading the features, I realized that the special function to insert a row in a certain position - no. So the question may be all I did was wrong? Maybe there is such a function, help to be more competently implement the decision.