les_ligetfalvy,
Sorry for the xtra post. I will try to get it right when posting or replying.....I will try to clarify. I do indeed need to keep log.txt intact. What I need overall is to keep log.txt intact while copying some of the lines out of the file and paste those lines into a new file called somename, leaving log.txt where it is and intact, as tho I never touched it, and save the new file to somedirectory. I have been trying to understand your code, I'm new to this. Some questions if I may....Why Carriage Return Line feed to start? I'm not following the If Open 1, error code then If Open 2, start making the new file? Am I close? Can you explain a little what the code does. I really am trying here, I have been reading up on Kix and get the basics here like the If Open line Open (filenumber, "filename", mode) I don't see a nmuber 5 for mode in the book Kix2001, what does it stand for?

Thanks a million!
Chris

_________________________
Bang that head that doesn't bang!!!