Wouldn't it be a better much nicer way, if something like this were possible: var l : longintBE; l := $197a; Fs.WriteInt(l); This should just need a new type, operator overloading and an overloaded writeint. Or adding a new method WriteIntBE is also interesting; Benito