how to obtain length of a UTF-encoded string before writing it?

wnstnsmith_at_yahoo.com
Date: 11/10/03


Date: Mon, 10 Nov 2003 12:59:52 GMT

Dear all,

I need to know howmany bytes will be written by writeUTF("blabla") before
actually writing the string to file.
how do I do that?

all help much appreciated.

WS