Separating data in two files