Question: how to transfer data from iphone to flash drive?
Answer: Pick up a Lightning to USB flash drive if you don't already have one.
Plug it into your iPhone (you'll need to download a corresponding app)
Open the app that works with your specific flash drive on iPhone.