I am trying to execute the following code that searches for a mac address in a text file and if found it asks if the user wants to retrieve device information by calling API