In the program I am writing, I want to be able to import CSV files. At the moment, it takes a basic text file in.
File mainemails = new File ("mainemails.txt");
I know that for CSV imports using File is probably not the most time-efficient thing to use. What would be the most efficient way to import a CSV file? Would I have to download any new libraries to use an efficient method?
You can use opencsv for importing csv data and then constructing objects from it.
I prefer using libraries so that I can save development time. Also they tend to solve specific problems better.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With