> i = 65; > typecast (i, UChar_Type); > fwrite (i, fp); Are you capturing the result of the typecast() call? If not, try: i = typecast(i, UChar_Type); HTH, Mike Noble _______________________________________________ To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html