[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Reading a flat file



Wilber,

No I haven't tried it in SQR.  My original post said I have used this method
in other languages.  Thanks for pointing this out.

Wayne Ivory
Information Services
Westralian Sands Limited


-----Original Message-----
From: Wilber Tang [mailto:SQR-USERS@USA.NET]
Sent: Friday, 26 February 1999 18:31
To: wilber_tang@AGUILACG.COM; SQR-USERS@list.iex.net
Subject: Re: Reading a flat file


Wayne,

I don't know what version of SQR are you using, but the string buffer in the
4.2.3 version seems to be limited to 64KB only. Have you ever really tried
to read a 5MB file into a SQR string variable?

Wilber Tang
Aguila Consulting Group, Inc.


> -----Original Message-----
> Parijat,
>
> I'm happy you got a working solution from Tony.  Just a comment about my
> suggestion of reading the entire file to which you replied "What
> if the file
> was a huge 5MB?!!".  My response would be "So what?"  Many computers could
> quite happily cope with this amount of data in memory.
>
> Those of us who've been in the industry awhile tend to have
> warnings ringing
> in the back of our heads that we picked up from our early days of
> programming regarding the foolhardiness of using such "huge" amounts of
> memory in a program.  But the reality is that systems these days are
> light-years ahead of what we were using back then and it's no longer the
> issue it used to be.  Of course it would still be possible to "cross the
> line", but before discarding such avenues I would try them out and see if
> they can run without impacting performance.
>
> As I said I'm glad you found your solution.  I'm just trying to encourage
> open minds.
>
> Regards
>
> Wayne Ivory
> Information Services
> Westralian Sands Limited