use intreadwrite functions in vocdec