Generate datatable column name not coming

and also please refer to this Read string from a text file and convert to an array - #2 by Palaniyappan and Converting String [] to datatable variable and review what you are doing, you are literally trying to pass an empty datatable into excel.