Hi Richard,
i use Microsoft excel to create the file and choose File 'Save as type' CSV
The format for each row is: action, parent course idnumber, child course idnumber.
For example, a file with this contents:
add, 1234, 4321 add, 1234, 4322 del, 2232, 3223
best wishes,
Aleks