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
Post a Comment