public class CsvFoolWriter
extends java.lang.Object
A simple reader for CSV files. It can handle files with comments (starting with "#") and split on the basis of different characters (default: ",").
The most natural return format is a 2-dimensions arrays of Strings. Still it is also possible to get a List of 1-dimension arrays of Strings. If the CSV is not "squared"; i.e. the number of fields is different across rows, the method might not work properly.
Constructor and Description |
---|
CsvFoolWriter() |
CsvFoolWriter(java.lang.String sep) |
Modifier and Type | Method and Description |
---|---|
void |
matrix2csv(java.lang.String[][] values,
java.io.File file)
Reads a csv file and return a 2-dimensional array of Strings of
it.
|
void |
matrix2csv(java.lang.String[] header,
java.lang.String[][] values,
java.io.File file)
Reads a csv file.
|
public CsvFoolWriter()
public CsvFoolWriter(java.lang.String sep)
public void matrix2csv(java.lang.String[][] values, java.io.File file)
file
- public void matrix2csv(java.lang.String[] header, java.lang.String[][] values, java.io.File file)
file
- separator
- character(s) that separate the fields