diff options
Diffstat (limited to 'lib/keyringer/fs.rb')
-rw-r--r-- | lib/keyringer/fs.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/keyringer/fs.rb b/lib/keyringer/fs.rb new file mode 100644 index 0000000..7b7742a --- /dev/null +++ b/lib/keyringer/fs.rb @@ -0,0 +1,13 @@ +module Keyringer + class Fs + def get_as_string(filename) + data = '' + f = File.open(filename, "r") + f.each_line do |line| + data += line + end + return data + end + end +end + |