Printable VersionPrint E-mail this Article to a FriendeMail
CSV File Format

We all know that we should be writing file extracts as XML but if we really need to get a CSV file then here is how to do it

Introduction

Comma Separated Values (CSV) files have been used since data first had to be exchanged between two applications. CSV files are an imperfect format that often loses data when not properly constructed and whilst XML is far superior it often raises concern over the size of files produced both for storage and transmission becuase of the overhead of the tags. Therefore if we have to move data using CSV files then it is better to know how to do it properly and here it is.

The definition

Sources

The text above is not original work, we found it on the internet some years ago and have used it ever since, unfortunately we have lost the original reference.

There is also a document at Creativyst that claims copyright from 2002 onwards however we had seen this material prior to that date (circa 1998). The article also discusses CSV and Unicode and conversion to XML. Creativyst also have a number of tools including a CSV to XML that look useful but we have not tried.

If there is an original author who can prove copyright we are more than willing to show appropriate accreditation. Article Manager module by by George! Software.