lib/smb/client/client_helper.rb
def read(from, overwrite = false, raise = true)
      tempfile = Tempfile.new
      to = tempfile.path
      tempfile.unlink
      get from, to, overwrite, raise
      File.read to
    end
def read(from, overwrite = false, raise = true)
      tempfile = Tempfile.new
      to = tempfile.path
      tempfile.unlink
      get from, to, overwrite, raise
      File.read to
    end
def read ( from , overwrite = false , raise = true ) tempfile = Tempfile . new to = tempfile . path tempfile . unlink get from , to , overwrite , raise File . read to end
Reads a remote file and return its content
 @param [String] from The file to be read from server
 @param [Boolean] overwrite Overwrite if exist locally?
 @param [Boolean] raise raise Error or just return +false+
 @return [String] The content of the remote file
Reads a remote file and return its content