View Issue Details

IDProjectCategoryView StatusLast Update
0001871Slicer4Core: Scripting (Wrapping, Python)public2014-04-22 15:51
Reporterjcfr Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityhave not tried
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001871: Add convenient method allowing to read a file into a string
Description

Looking at the content of the Helper script provided by EMSegment and copied all over, it seems having such function could be useful.

Integrate a method similar to this one:

@staticmethod
def readFileAsString(fname):
s = ''
with open(fname, 'r') as f:
s = f.read()
return s

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-04-08 07:29 jcfr New Issue
2012-04-08 07:29 jcfr Status new => assigned
2012-04-08 07:29 jcfr Assigned To => jcfr
2012-08-21 12:24 jcfr Target Version => Slicer 4.3.0
2013-08-27 11:43 jcfr Target Version Slicer 4.3.0 => Slicer 4.4.0
2014-04-22 15:51 jcfr Status assigned => acknowledged
2014-04-22 15:51 jcfr Target Version Slicer 4.4.0 =>