This commit is contained in:
2025-05-15 11:44:02 -05:00
parent ee7c4c9560
commit fad2223495
8 changed files with 113 additions and 36 deletions

5
lib/write_file.rb Normal file
View 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