Login  Register

Re: Quick question

Posted by Michael Schmid on Jun 09, 2010; 8:18am
URL: http://imagej.273.s1.nabble.com/Hypertext-links-in-IJ-showMessage-tp3687773p3687781.html

Hi Rick,

for text files you can use
   string = File.openAsString(path);
   File.saveString(string, path);
Note that this may change the line termination character (it is  
converted to linfeed, "\n" on read).

Michael
________________________________________________________________

On 8 Jun 2010, at 22:36, SIMMONS, RICK L [AG/1850] wrote:

> Wayne,
> Is there a file.copy() macro command (or something similar)?  I  
> need to
> copy a *.txt output file to a *.csv file so that it can be easily  
> opened
> by Excel or MiniTab.  I need to retain both the txt and csv files.
> Thanks in advance (again).
>
> Rick