How to load the CSV DataTable dynamically?

This code apply on .h file or .cpp file?