[PLUGIN] How can I import a custom file in a custom plugin ?

Hello !

I am currently working on a plug-in. Let’s say I have all methods ready. What I want to do is, when the plug-in is launched from the editor, it asks to browse a custom file. Because my methods need the content of this file in order to work.

I saw the method UFactory::FactoryCreateNew or FactoryCreateFile but I don’t really understand how am I supposed to bind one of these methods on a button and then make it browse a file.

Thanks in advance !