documents:120206pyip_cooking:python_imagej_cookbook
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
documents:120206pyip_cooking:python_imagej_cookbook [2018/12/18 22:50] – [Python + ImageJ, Fiji Cookbook] kota | documents:120206pyip_cooking:python_imagej_cookbook [2020/07/14 22:29] – [Path operations] kota | ||
---|---|---|---|
Line 221: | Line 221: | ||
print ff.getParent() | print ff.getParent() | ||
print ff.getName() | print ff.getName() | ||
+ | </ | ||
+ | ==== Loading a textfile as String ==== | ||
+ | |||
+ | <code python linenums: | ||
+ | path = "/ | ||
+ | with open(inpath, | ||
+ | data = myfile.read() | ||
+ | print data | ||
</ | </ | ||
documents/120206pyip_cooking/python_imagej_cookbook.txt · Last modified: 2022/10/16 07:12 by kota