Login  Register

Re: Saving XY files

Posted by Herbie on Aug 04, 2015; 1:47pm
URL: http://imagej.273.s1.nabble.com/Saving-XY-files-tp5013884p5013885.html

Florian,

not sure what it is that you like to save, but if it is text then you
are to use:

        File.saveString(string, path);

HTH

Herbie

:::::::::::::::::::::::::::::::::::
Am 04.08.15 um 14:37 schrieb Flopi:

> Hi,
> There is most probably a very obvious answer to my question, but I can't
> definitely find it. Moreover, it worked at some point, and I don't remember
> changing anything about the part of the code. My goal is, after doing some
> work on images, to record the XY coordinates of the final image. The problem
> is, everything goes normally, the log is ok, but at the end, no file is
> saved. I have been on it for some hours now and I have no idea what is going
> wrong.
>
> Below is the code :
>
> function Matrixsave(settings,imageName)
> {
> savepath = path[0]+"\\"+path[1]+"\\XYfiles\\"+imageName+".txt";
> pathtest = path[0]+"\\"+path[1]+"\\XYfiles\\";
>
> if(File.exists(pathtest))
> {
> print("folder found at "+pathtest);
> }
> else
> {
> print("folder not found at "+pathtest);
> }
>
>
> run("Save XY Coordinates...", "background=255 save="+savepath);
> print("XY file saved at "+savepath);
> }
>
> The different prints give me the correct answers i.e. the folder indeed
> exists and it writes that the file has been correctly saved at the correct
> position, but when I open the folder, not file is present...
>
> Thanks a lot for your help !
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Saving-XY-files-tp5013884.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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