Method: Rex::Parser::Ini#to_file

Defined in:
lib/rex/parser/ini.rb

#to_file(tpath = nil) ⇒ Object

Writes the group settings to a file.



104
105
106
107
108
109
110
# File 'lib/rex/parser/ini.rb', line 104

def to_file(tpath = nil)
  tpath = path if (!tpath)

  f = File.new(tpath, "w")
  f.write(to_s)
  f.close
end