Read from file, parse content and handle exceptions

Signed-off-by: Diyan Yordanov <diyordan@cisco.com>