This site is temporarily down. Please come back. Write a CSV file
DelphiFAQ Home Search:

Write a CSV file


comments2 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.

To write out a couple of strings, put all strings that belong in one record in a
TStringList object.
The TStringList has a property CommaText: string, which
collects all the strings into one single comma-delimited string.

The advantage:
In case your strings had the delimiter (,), it automatically adds quotes.

Later you can read it in the same way!
CommaText is a read and write property.

Content-type: text/html


2006-11-18, 19:57:27
hunter from China  
please uses xml i think this's very good!
2007-10-26, 03:00:33
donairl from Surabaya, Indonesia  
how about when there's more than one record ?



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: