Map relationships between text files