spacer
cornerspacercorner
Reply
Occasional Contributor
Paul Heffernan
Posts: 3
Registered: 11-16-2010
0 Kudos

openstream and null terminating strings

Hello,

 

currently in our system we use openstream to read files when are processing them in xmscript. We have run into a bit of a problem though. It appears as though if the contents contain a NULL, openstream will terminate and not read the rest of the file. This has become a problem with a particular file, is there any way xmscript can handle this?

 

 

Thanks,

 

 

Paul

Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos

Re: openstream and null terminating strings

Have you tried opening it in binary mode?

 

openStream("rb");

Ethan Beisher
Solutions Engineer
Business Process Solutions
line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line