Read file for controller.