It sounds like you want to insert into the middle of a text file, depending on whether there's enough room for the stuff you want to Put there.<br>
<br>
Not an easy question, I'm afraid.<br>
<br>
Once you've determined that your data won't fit, you have to go through the following steps:<br>
1) Copy all data from your original file (file 'A') up to the start of the position you want to insert to, to file 'B'.<br>
2) Append your data to file 'B'<br>
3) Back in file 'A', skip over the data that you would've overwritten, then append the rest of file 'A' to file 'B'<br>
4) Delete file 'A', and rename file 'B' to 'A'.<br>
<br>
Ugly, really ugly, but I don't know any other way to handle it. Maybe someone else here has a better suggestion. Of course, the "correct" answer would be to redesign the file layout so this doesn't happen, but that may not be an available option for you.<br>
<br>
Chip H.<br>