Mega Code Archive
Categories
/
Ruby
/
File Directory
Use code block to insert string to a file
open('s.html', 'wb') do |f| f << '
' f << "\xe2\x98\xBA" end