Search code examples
prologeclipse-clp

How can use data file with Eclipse-clp program


How can use data file with Eclipse-clp or Prolog program. for Variables and Array values. for example if you want to give data to program as an big Array.How can read this data from a data files?


Solution

  • ECLiPSe includes a CSV library:

    http://eclipseclp.org/doc/bips/lib/csv/index.html

    This library allows you to parse a CSV file into lists, which you can then convert into an array using another library:

    http://eclipseclp.org/doc/bips/lib_public/arrays/index.html