positran,<br>
<br>
About the only way you can go to a specific line with sequential access is by looping through the file and applying some sort of search or match criteria to each line until you find the one you [think] you want. Sequential access does not allow for specifying a specific offset: you have to use some kind of workaround. However, you can 'index' the file after having read through it once - but the index gets bigger than the file, and is expensive in both memory and disk I/O.<br>
<br>
kylep,<br>
<br>
positran has a point about the file. What format does it have/need, and do the file elements need to be contiguous, or can they be just congruent? If congruent is ok, then the .ini file approach will work. If not, then you'll need to set up a routine for handling binary file access (or sequential, perhaps). If you go the binary route, you'll need to do an instr() search for a unique string or a search for a known instance of a non-unique string. Then, to make changes, unless the changes are the exact length of the original string, you'll have to rewrite the entire file.<br>
<br>
(Hmm-m-m. Can you write changes to the file w/o rewriting the file if the changed string is same length as the original? Anyoone?)<br>
<br>
<br>
Make a good day . . .<br>
. . . barn<br>