AnsweredAssumed Answered

Can't open CSV File in 10.7

Question asked by wareclause on Nov 23, 2019
Latest reply on Jan 13, 2020 by wareclause

I am trying to open a CSV file in with the following code:

 

// Create pTable from .csv file...
IWorkspaceFactory pFact = new TextFileWorkspaceFactory();
IWorkspace pWorkspace = pFact.OpenFromFile(LocalFolder, 0);

IFeatureWorkspace pFeatws = (IFeatureWorkspace)pWorkspace;
ITable pTable = pFeatws.OpenTable(CSVFile); //open the .csv file...

 

This is throwing me an error. I have opened the csv in ArcMap and it loads fine. I have tried to do the Tyep.GetTypeFromProgID as well and both throw the same error. This is a high priority and have very limited time to get this working. Please someone help me figure this out. The CSVFile does include the file extension as well.

 

URGENT!! URGENT!!

Outcomes