preventing students from writing files