On Sun 07 Jul, Philip Perry wrote:
> On Sat 06 Jul, Richard Proctor wrote:
> > 
> > On Fri 05 Jul, Philip Perry wrote:
> > > Hello All,
> > > 
> > > I'm having a problem with processing an Windows Outlook Express '.dbx'
> > > file.
> > > 
> > > The script I've written to cut down the file to plain text works a treat
> > > on the RISC OS port of Perl5.... but when I run it on the nsPerl port
> > > installed on my friends PC it appears to choke on bytes containing the
> > > value 0x1A. If these bytes are removed in a text editor, all then goes
> > > well on the PC.
> > > 
> > 
> > The problems is with windows treating text and binary files differently.
> > 
> > If you make the input Binary then it will work.
> 
> Hello All,
> Thanks Richard for your reply,
> 
> Sorry to be such a dunce on this topic but how do I go about making the
> input binary?
> 

In my reply yesterday I had added the necesary line to your program...

add:

binmode INFILE;

after opening the file, you can leave it in for all systems, under Riscos
this is in effect a no-op.

Richard

-- 
Personal     [EMAIL PROTECTED]            http://www.waveney.org
Telecoms     [EMAIL PROTECTED]  http://www.WaveneyConsulting.com
Web services [EMAIL PROTECTED]            http://www.wavwebs.com
Independent Telecommunications Consultant, ATM expert, Web Analyst & Services

Reply via email to