apple,"wild cherry",peach pear,plum,"apricot" mango,payaya,guava "orange, Valencia", lemon, lime """extra virgin"" olive", palm, dateUsually fields containing embedded spaces or commas are contained in " marks, but there are other conventions. Quotes (") inside quoted fields are doubled. Europeans often use ; and Perl aficionados use tab to separate fields instead of commas. Sybase SQL import uses ' instead of ".
I wrote CSVReader and CSVWriter which are available with complete Java source. They are full featured and configurable. As well as the read/write classes there are 20 utilities to let you do such thisgs as sort, align, pack, etc. with the library or with the sample utilities. I find these utilities useful for massaging data into tidied form, e.g. by screenscaping, without having to write any Java code.
For simple key=value you might use the built-in Properties mechanism instead. Unfortunately, it has a complex system of encoding awkward characters incompatible with CSV.
This page is posted |
http://mindprod.com/jgloss/csv.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\csv.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[44.192.67.10] |
| |
Feedback |
You are visitor number | |