Login as the admin user. At the 'Site Administration' block, expand de 'Frontpage' option, then click on 'Site files'.
Click on the 'upload file' button on the right and upload your file (let's assume you called it 'myenrolments.txt').
Then go to flat file enrolment page. In the enrol_flatfilelocation text box, type the path to the file. The site files is course number 1 on every Moodle site, so assuming the value of $CFG->dataroot in config.php is /var/lib/moodledata, the path to the file would be /var/lib/moodledata/1/myenrolments.txt.
联系客服