class EllipticCurve::Utils::File

Public Class Methods

read(path, encoding="ASCII") click to toggle source
# File lib/utils/file.rb, line 7
def self.read(path, encoding="ASCII")
    file = ::File.open(path, :encoding => encoding.upcase)
    content = file.read
    file.close
    content
end