readingschool-cs-club / JayI

A simple AI that talks to you and learns from you as you talk to it.
4 stars 1 forks source link

file access needs rewrite #4

Closed ghost closed 9 years ago

ghost commented 9 years ago

File access needs rewrite so escaping etc. can be added

raehik commented 9 years ago

Probably best thing to do here would be to store it in a CSV. Easy reading/writing for machines & humans, likely some module for Python to help writing & escaping (only quotes really need to be escaped, though)

raehik commented 9 years ago

Commas don't need escaping. Enclose each column in quotes and you've escaped almost every character already. I think a CSV file would be better than having colons between fields. More standardised.