[Jprogramming] freadr messed up result

Alex Rufon alex_rufon at ist-systems.com
Tue Feb 9 20:05:54 HKT 2010


Hi Chris,

Thanks. That was the problem!

I don't know why they changed the output format ... but using NotePad++ ... I can immediately see the jagged edges.

@Bjorn, I was actually cutting the files the fourth time when I saw Chris message. Still ... thank you.

r/Alex

-----Original Message-----
From: programming-bounces at jsoftware.com [mailto:programming-bounces at jsoftware.com] On Behalf Of Chris Burke
Sent: Tuesday, February 09, 2010 6:59 PM
To: Programming forum
Subject: Re: [Jprogramming] freadr messed up result

Alex Rufon wrote:
> Hi,
> 
> This is a head scratcher.
> 
> I've been using "freadr" to process outputs of an AS400 system. I've been using this for years without a hitch.
> 
> Now I've got data that becomes messed up if I read it with "freadr". To work around the problem, I used:
>     > cutopen freads 'filename'
> 
> Unfortunately, the problem file I'm processing is around 19MB so I can't provide a sample. Each line of the file is delimited by CRLF.
> 
> I know it's a bit vague but any ideas on the matter would be helpful. :)

freadr requires the file to have fixed-length records. It sounds like
this new file has records of varying length.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list