Saturday, August 30, 2008   
  Search  
 
Register  Login  
Forums  
     Minimize  

Welcome to MeraWindows forums.

Thank you for being at the Microsoft Windows Community Site. You may have to register before posting in forums. It's absolutely free. After registering, you can get all the benefits available to our registered members, you can access our Downloads section, you can participate in contests, etc. You can post in forums in English as well as in Hindi, in fact we encourage you to use Hindi in your posts. If you have any problem with registration or login, please contact us.

     
  


 
  Microsoft Windows Forums  Other Windows V...  Other Windows  Those Fickle CSV Files
Previous Previous
 
Next Next
New Post 7/4/2008 8:40 PM
User is offline techfreak
1036 posts
gizmos4fun.blogspot.com
MW Addict




Those Fickle CSV Files 

CSV stands for comma-separated values. It refers to a plain ASCII file that contains data. CSV files are often used for exporting data from one application into another. For example, most online e-mail services allow you to export your address book as a CSV file. That way, if you ever want to switch from using online web mail to using an off-line e-mail client (such as Microsoft Outlook or Mozilla Thunderbird), you can. Or, perhaps, you simply want to load data into a spreadsheet, or a document, or some other local file on your computer to work with it. You can do that, too.

CSV files are usually named with a *.CSV extension. If you have Microsoft Excel installed, then the *.CSV file name extension is probably associated with Excel. So, double-clicking on a *.CSV file to open it would launch Excel and load the file into a new spreadsheet.

Riddle me this: Half the time, double-clicking on a *.CSV file to open it in Excel works perfectly fine — the data appears in neat columns and rows. Why is it, then, that half the time the data is scrunched up all in the A column?

The problem is that CSV isn’t a standard. Programmers have lots of different interpretations for how a CSV file should be formed. So, the “CSV” file that’s is exported by one program could be wildly different from the CSV file exported by another, even if the actual data was the same. For example, one big difference is in the field separator.

Comma-Separated Values: The CSV name is a holdout from the days when comma was a popular field separator. Notice here how “Public, John Q.” has to be in quotes so that the comma that is part of the value is not taken for a field separator.

Company Name,Contact Name,Phone Number
Acme Inc.,"Pubic, John Q.",(123) 456-7890

Tab-Separated Values: These days, files with tab-separated values are much more popular, because it means that the data itself can contain commas (without having to put them in quotes).

Company Name»Contact Name  »Phone Number
Acme Inc. »Pubic, John Q.»(123) 456-7890

Pipe-Separated Values: One drawback to tab-separated values is that the tabs are invisible (unless you set your editor to show whitespace). So, some programmers opt to use yet another character that does not otherwise appear in the data. Symbols commonly used include the vertical-bar/”pipe” (|), the tilde (~), and the semicolon (;).

Company Name|Contact Name|Phone Number
Acme Inc.|Pubic, John Q.|(123) 456-7890
 
source

Gizmos4fun
 
Previous Previous
 
Next Next
  Microsoft Windows Forums  Other Windows V...  Other Windows  Those Fickle CSV Files
   Get Your Own E-Mail Account @MeraWindows.com Minimize  
New Page 1 New Page 1
Show your cool quotient with @merawindows.com email account