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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -