Use a proper CSV formatter and parser in Java
Currently the Java code simply splits on commas to read and uses printf
to write.
This is obviously not the correct way to deal with CSV, we need to fix it at least in files containing arbitrary strings (eg. PopularContents.java
).
Plus, printf
seems to do a lot of syscalls to display a single string (one syscall per token), which is probably a bit wasteful in terms of perfs