def read_data_from_device(device, location):
    """ Reads text data from device and returns it as output
        Args:
            location ('str'): Path to the text file
        Raises:
            FileNotFoundError: File Does not Exist
        Returns:
            Data ('str'): Text data read from the device
    """
    # IMPORTANT
    # =========
    # This API does not require the device to have network connection
    # copy_from_device is the other API that behaves similar to this one,
    # but it requires network connection since it uses SCP
    try:
        return device.execute("cat {}".format(location))
    except Exception: # Throw file not found error when encounter generic error
        raise FileNotFoundError("File {} does not exist.".format(location))