Authors: Arjan Scherpenisse (arjan@scherpenisse.net).
line() = [binary()]
lines() = [line()]
sep() = 44 | 59 | 9
cleanup_field/1 | |
inspect_data/1 | Check if the first row is made up of column headers. |
inspect_file/1 | |
parse_line/2 | Parse a line into its columns, using a character a separator. |
scan_lines/1 | Scan the file (or device) and return lines with fields. |
scan_lines/2 | Scan the file (or device) and return lines with fields. |
cleanup_field(L) -> any()
Check if the first row is made up of column headers. The file must have at least a name and a category column.
inspect_file(Filename::file:filename_all()) -> {ok, line(), sep()} | {error, invalid_csv_file | term()}
parse_line(Line, Sep) -> any()
Parse a line into its columns, using a character a separator.
scan_lines(DeviceOrFilename::file:filename() | pid()) -> lines()
Scan the file (or device) and return lines with fields.
scan_lines(Filename::file:filename() | pid(), FieldSep::sep()) -> lines()
Scan the file (or device) and return lines with fields.
Generated by EDoc