Passing csv files through command

If we pass two csv files through command line then how consider the input in main.
I want to retrieve headers from two files and print them

You can just use the csv library and use the example as shown here: csv library. If you wanna parse files given through the command line, either use something like pico_args, structopt, clap etc... or the std library: std::env::args

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.