That will do it, thanks. The only think that concerns me is writing the lines back to memory after ive edited them in some way, like a Regex routine does when it goes through the whole file.... I guess I will have to deal with that when I come to it.
Cheers