Switching Train Tracks

Does anyone know if it’s possible to switch train tracks ie train paths?

Go from one .dat file to another if they share the same node?