My goal is to import a csv file into a data table, or the memory, and to also be able to export a data table into a csv file. For the import and the export, I'm trying to use a nugget package called CSVLibraryAK.Core and for some reason when I used the syntax that was provided by the creator of the nugget package, I still get an error. The error message is that, "the type or namespace name import doesn't exist in the namespace CSVLibraryAK.Core. I've tried to mess around with it and also tried to see if anyone else has encountered the same problem but I'm not getting anywhere.
This is some code that I have tried:
using CSVLibraryAK.Core;
using System.Data;
namespace project
{
class Program
{
static void Main(string[] args)
{
bool hasHeader = true;
string importFilePath = "C:\\import.csv";
DataTable data = CSVLibraryAK.Core.Import(importFilePath, hasHeader);
}
}
}
If anyone could help me out I'd be very grateful