Re: Copying Specified part of a Text File.
Posted by
Rainer M. Engel on
Dec 18, 2012; 1:50pm
URL: http://imagej.273.s1.nabble.com/Copying-Specified-part-of-a-Text-File-tp5001202p5001200.html
> I was wondering if there is a way of copy specifics parts of a text file
> (defined as line and columns) to output them into a results after
> performing mathematical operations on them.
Hey Rhod,
you can do this with the given macro functions of ImageJ.
Open that output you created:
http://rsbweb.nih.gov/ij/macros/OpenDialogDemo.txtto split the file into lines:
lines=split(str,"\n")
There are more things to read here:
http://rsbweb.nih.gov/ij/developer/macro/functions.htmlMaybe you want to create substrings of your wanted segments and store
these values in arrays for later calculations.
Best regards,
Rainer
--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorferstr. 143
D-13595 Berlin
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html