Separation of data into another file