TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: MIKEAINIA
date: 1998-03-25 01:40:00
subject: Re: Need help with binary

From: mikeainia@aol.com (MikeAinIA)
Subject: Re: Need help with binary file question...
 
In article , pwrbasc@aol.com
(PWRBASC) writes:
 
>I am new to binary files. I am trying to read a file which is over 15 meg in
>size. Each record is 404 bytes long. When I read 82 records into the file, I
>get an error #15 (string length too long) using this command "GET$ 1,
>Position,
>A$"
>When A$ exceeds the 32750 limit, then the error pops up. Is there some way 
o
>reset A$ back to 0 and read another 32750 bytes into file from the point
>where
>the first seek ended.
>
>
 
You must periodically copy A$ to another variable and
clear it.  Or , before the length of A$ gets out of hand
process the data that you already have in it
and clear it.  Else you will hit the string length limit.
Note that with that much data to handle, you can't just
load it into variables or arrays unless you use XMS or
EMS to hold it.
 
ie:
 
  DO UNTIL EOF(ReallyBigFile)
     Read 10 records (or 100 or whatever)
     Do something with those 10
     A$ = ""
  LOOP
 
or some such.
 
--Mike A.
 
 
 
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.