Use 'with' block to read local discovery file