Login  Register

Re: Separator within Results window

Posted by Kenneth Sloan-2 on Jan 21, 2020; 7:58pm
URL: http://imagej.273.s1.nabble.com/Separator-within-Results-window-tp5022874p5022876.html

Many of my plugins check the current Locale and write output files using a format specific to that Locale.  The code to do that
is a bit messy, but I have evolved towards a stylized method that is not too difficult to write (it *is* a bit confusing to READ the code).  For various reasons, I have little experience dealing with the Results Table outputs.  Generally, I roll my own.
The main difference is between comma-separated .csv files (is that redundant?) and TAB-separated .txt files.

After decades of experience with this, my conclusion is that .txt files with TAB delimiters is most portable format.  Of course, the main problem with .csv files is the use of ',' as a field separator when in Locales which use ',' as a decimal separator.  I have not encountered similar problems with TAB being commonly used for something other than a field separator.

I may start to standardize on this, and stop worrying about Locale.

The good news is that recent releases of Excel (for example) generally do a good job parsing these files.  If memory serves, the lack of "easy import" for TAB-delimited .txt files was the initial motivation for using .csv files where possible.

--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html