Skip to content

How to deal with csv parsing errors #2185

Answered by haijinSk
razetime asked this question in Q&A
Discussion options

You must be logged in to vote

This line:

:- phrase_from_file(parse_csv(Data),"data.csv"), write(Data).

should be (if in a file), for example, like this:

run :- phrase_from_file(parse_csv(Data),"data.csv"), write(Data).

The "head" was missing.

The repl case works in my case...

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@razetime
Comment options

@haijinSk
Comment options

@razetime
Comment options

@haijinSk
Comment options

@triska
Comment options

Answer selected by razetime
Comment options

You must be logged in to vote
3 replies
@razetime
Comment options

@razetime
Comment options

@triska
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants