User Tools

Site Tools


documents:120206pyip_cooking:python_imagej_cookbook

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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] kotadocuments: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()
 +</code>
 +==== Loading a textfile as String ====
 +
 +<code python linenums:1>
 +path = "/Users/miura/data.txt"
 +with open(inpath, 'r') as myfile:
 +  data = myfile.read()
 +print data
 </code> </code>
  
documents/120206pyip_cooking/python_imagej_cookbook.txt · Last modified: 2022/10/16 07:12 by kota

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki