I have my InstallData but i want to read a file in SQL/CSV format in magento 2
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$tableName = $setup->getTable('custom_table');
$data = [
[
//Read file in sql/CSV format.
],
];
$setup
->getConnection()
->insertMultiple($tableName, $data);
$setup->endSetup();
}
How do i go about this in magento2...