the above code doesn't do anything besides combine both of rattrapmax6's examples, now that i've read them. i wasn't paying attention to anything except whether they show how to open two files at once using freefile, which technically, neither do. although it was better to redo your own code with freefile, which has been done already
i still maintain that i've never seen a well coded program that needs freefile, but that's not to say such a program doesn't exist. at first it looks like a useful function, but i can't guess how it would be. maybe someone can explain that to me sometime, using a *real* example, a "i needed it because" example, instead of the obvious "maybe it would be useful this way" example, the only kind i could make for it. or maybe it becomes very, very useful with subs, only i think it would be just as easily simulated with a global variable? oh well...