@Pawel40Adi maybe it would be best to open a new forum entry and describe what you want to do and maybe give us some (dummy) sampel data that would represent your problem. In the meantime you could explore this older collection regarding the import of CSV/TXT files:
Also you might want to check if just allowing the dynamic change of file structure in the CSV Reader might solve your problem: