I have custom module in which i am importing csv file upon button click. I want to import the csv during module installation, i don't know how to implement it in install data file.
Any help will be appreciated.
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can find examples of import CSV files during installation on Magento 2 Sample data module https://github.com/magento/magento2-sample-data/blob/2.3-develop/app/code/Magento/CatalogSampleData/Setup/Installer.php