Method: DatawireQuarkCore.getFileContents
- Defined in:
- lib/datawire-quark-core.rb
.getFileContents(path, result) ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/datawire-quark-core.rb', line 144 def self.getFileContents(path, result) begin result.value = File.read(path, {"encoding": "UTF-8"}) result.finish(nil) rescue => ex result.finish(::Quark.quark.os.OSError.new(ex.)) end end |