You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to automatically determine the type of CSV file I'm importing by examining the first line. Is there any way to get the first line as [String] so that I can test their values (without parsing the whole file)?
Ideally, I could then parameterize the record type as part of the startImport call, but I can also just instantiate two different importers.
The text was updated successfully, but these errors were encountered:
Right now, I have to parameterize the CSVImporter: CSVImporter<T>. An alternative would be to parameterize the startImport call: startImport<T>. But that's not as important as being able to get the header fields out as [String] with a separate call from startImport().
I'd like to automatically determine the type of CSV file I'm importing by examining the first line. Is there any way to get the first line as
[String]
so that I can test their values (without parsing the whole file)?Ideally, I could then parameterize the record type as part of the
startImport
call, but I can also just instantiate two different importers.The text was updated successfully, but these errors were encountered: