how to insert string into file

  • Thread starter Thread starter McCar
  • Start date Start date
M

McCar

I can not find out how to insert string into the desired place in the
middle of the file (or delete string from the middle)..
Yes of course I can read all file into string then split this sting
into two parts , add third part between them and then write new to the
same file..
But I think that is not the best solution if the file is big.
How can I do it some other way?
Sorry for not perfect English, hope you understood me.
 
For an unstructured text file, that is about the only way to do it, tho
there may be various approaches. Doesn't help you much tho.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top