Yes that is so. Your code also looks good, assuming both files are open.