[aplusdev] map a very large text file?
Vladimir N. Kutinsky
kutinskyv at obninsk.com
Tue Feb 12 00:21:17 EST 2002
Hello John,
Yes, it is a text file that contains "1 2 3".
What do you mean by "long data"?
The fact is that I wrote a function to read ascii data from a file to A+ session .
Now that I know about txt>mapped conversion I've been thinking about switching from
my Read function to mapped files technology. Is there any work around if the "In"
file is a simple text file?
Thank you,
Vladimir
John.Mizel at MorganStanley.com wrote:
> Vladimir,
>
> Is it actually long data or just a text file that contains "1 2 3"?
> If it is the latter it won't work.
>
> Thanks,
> John
>
> On Tue, 12 Feb 2002, Vladimir N. Kutinsky wrote:
>
> > Hello John,
> >
> > > beamOut in out.m i 3
> > >
> >
> > That's the problem. It doesn't work this way. First, i get :
> > in too small... not enough data
> > and in A+ session after beam-ing the out.m I get
> > 540155953 168430131 0
> > of type integer.
> > The same is true for beamOut in out.m i 2 2. I get the right shape of the A+
> > variable but the values are all wrong....
> >
> > Does it matter where EOF is in the initial file? like on the same line with the
> > last row of data or on a single last line?
> >
> > Thankyou,
> > Vladimir
> >
> >
> >
>
> --
>
More information about the apluslist
mailing list