scala - Auto detect column types in OpenCSV -


i'm reading file opencsv way (in scala):

val reader = new csvreader(new filereader("somefile.txt")) (row <- reader.readall) {     println("col(0): " + row(0) + " col(1)" + row(1) ) } 

since file provided user, don't know format, need know each column type (number, string, etc.). possible opencsv ? if not, there library can auto detect column types?


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -