Hi,

something goes wrong with this block of code when I use Shoes to package 
an app:

>> data=nil
>> open("data.txt", "rb:UTF-16LE") {|fin| data=fin.read() }
>> open("data.txt", "wb:UTF-8")  { |fout| fout.write(data) } if data

I've attached the entire script. If I comment out this block the 
jibberish appears again in the file. However, If I let run this block of 
code, the content is deleted and the Alert is not displayed.

Could someone take a look where I went wrong. I am still learning Shoes 
too:)

kind regards,
Seba

Attachments:
http://www.ruby-forum.com/attachment/7411/dup_app.rb


-- 
Posted via http://www.ruby-forum.com/.