I have taken the input from student (test.xml) in .xml format using file manager and now I have
1) $fs = get_file_storage();
2) $files = $fs->get_area_files($this->assignment->get_context()->id,
3) $file= reset($files);
Now I have the $file which is of type stored_file .
Now please help me to get the file test.xml.
I am capable to get content of file in string format using get_content() but I want the actual file in xml format.(test.xml).
Please help me regarding this..