pjjTextBase uses text files ("flat files"), that are basically identical to CSV files (=Comma Separated Values), ie. have the following structure: first line contains field names, separated with separator, while records are placed in consecutive lines, eg.:
id|author|title 1|Agatha Christie|Evil Under The Sun 2|Arthur Conan Doyle|A Study in Scarlet 3|Raymond Chandler|Farewell My Lovely
Althought generally speaking pjjTextBase smoothly reads CSV files, there are some limitations and enhancements you should be aware of:
Please notice that funtions that write down data (ptb_update, ptb_delete, ptb_write, ptb_addField, ptb_delField and ptb_changeFieldname) strip comments and empty lines due to the fact that they simply write down array from the memory; the only exception is ptb_add, which appends data to a file.
If you want to learn more about CSV file format, I recommend reading Dominic John Repici's article The Comma Separated Value (CSV) File Format.