Changes
This commit is contained in:
5
lib/write_file.rb
Normal file
5
lib/write_file.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
def write_file(directory, name, extension, content)
|
||||
post_file = File.new(%(#{directory}/#{name}.#{extension}), 'w+')
|
||||
post_file.syswrite(content)
|
||||
post_file.close
|
||||
end
|
Reference in New Issue
Block a user