Add method "loadFile" to class ResourceController.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>