New way to read/write a binary file?

Hello. I am re-compiling some code that reads a binary file:

   var fsp = openReader(fspnam,kind=iokind.native);

and the compiler emits a warning, mentioning something new to me: deserializers. Can anybody point me to the recommended new syntax do do this?

many thanks

Nelson

Hi Nelson,

The above code can be replaced with the following:

var fsp = openReader(fspnam, deserializer=new binaryDeserializer());

fsp should behave the same as it did before.

See the binaryDeserializer docs and the serializers technote for more information.

-Jeremiah

1 Like

thanks Jeremiah!