> .put(0, (byte) 0xEF)
> .put(1, (byte) 0xBB)
> .put(2, (byte) 0xBF)

> However when the file is created and I open it with either notepad++ or
> excel the first characters are  not show, the file always starts with *
> artdate"* .
>
> Any idea how to work around this?

You are using put(). Those three statements will overwrite the
first three bytes.

Isn't there an insert() ?

If not: just first write the bom and then the bytes.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to