The flat file has the following format:
operation, role, ID number of user, ID number of course
Here, keep the following in mind:
- operation: It can be add or delete. These enroll and unenroll the user from the course.
- role: It is the role, or function, that the user will have in the course; for example, student or teacher editing.
- ID number of user: It is a unique identifier for the user (note that this is not the same as username).
- ID number of course: It is a unique identifier for the course (note that this is not the same as the course short name).
Moodle periodically reads in this file and modifies its enrollment data according to what the file says. Consider this example:
add, student, 007, EM102
The preceding line will ...