Enclose files content with a "try ... catch" statement