Read a file and print intersection

You are given two sorted list of numbers (ascending order). The lists themselves are comma delimited and the two lists are semicolon delimited. Print out the intersection of these two sets.Print empty new line in case the lists have no intersection.