I just started playing around with ruby, so try to be patience =). Everything seem fine until i ran into an issue:
I need to export a Int converted string into binary data, so i can use it in a micro-controler.
Here is part of the code:
def save_hex
text_hex = File.new("hex_#{@file_to_translate}.txt", "a+")
@text_agreschar.each_with_index do |string_agreschar, index|
string_hex = ''
string_agreschar.each do |char_agreschar|
string_hex << char_agreschar.agres_code.to_i
end
text_hex.print(string_hex)
text_hex.puts('')
end
end
I need to export my "string_hex" into a binary file, not a text...
Ps* I'm developing in windows 7...=( sad but true.
Thanks in advance.
Marcelo Pinhel
