in reply to comapring colums in file
What have you tried? We can't easily fix code we can't see and if we just do it for you, you learn much less than you would trying to do it for yourself.