Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

CSV delimiter detection

$
0
0

Is there anyway to accurately determine the delimiter used for CSV files in non-US countries?  There must be some way, as Excel knows what to do, but I can't find any way to determine in from NLSGETLOCALEINFO. Currently I try using the decimal delimiter from NLSGETLOCALEINFO, but I still need to try what comes back from NLSGETLOCALEINFO, and then try a ; if it fails. This is not a failsafe way to do it....

The problem arises when importing a csv file created by Excel and I need to know what to scan for.

 

Thanks,
Neal Van Eck


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>