http://imagej.273.s1.nabble.com/Extend-File-openAsString-for-an-url-tp5024268p5024269.html
I think the File.openUrlAsString(url) function does this.
Jerome.
> Dear all (probably Wayne),
>
> Since the version 1.41k, the macro method "open(path)" can as well be used
> with path being as well an url.
> But for the method "File.openAsString(path)" path still can't be an url,
> thus would it please be possible to extend as well this method for url
> inputs?
>
> Besides this I would just have a little comment about the example code
> found within the following link:
>
http://wsr.imagej.net/macros/DialogDemo.txt> There can be found the following code:
> if (ramp==true) type = type + " ramp";
> But given that "ramp" is already a boolean, to make the test "ramp==true"
> is quite redundant.
> Knowing that this link should probably serve as teaching purposes, I would
> rather put this line in comments (or erase it) and use the "simpler
> version" one in the code:
> if (ramp) type = type + " ramp";
> I really apologize in advance in the case this comment is kind of "too
> much" and I can really live if it is ignored.
>
> My best regards to all,
>
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 42 89
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>