is it safe to dump "available devices" to a textfile and read

Hi, is it safe, or even possible, to do a write of available_devices and available_plugins to a textfile and then use a for-loop to iterate through the listing, thus creating shortcuts for each available_device + available_plugin?

can those textfiles be safely written inside the LUA tool’s folder, and if so, how?