Post Reply 
List Length Maximum
08-19-2017, 11:16 PM
Post: #1
List Length Maximum
I was working on a tool to read text files when I encountered an issue with files larger than 10000 Bytes. Basically I was doing this:

Code:
fsize:=AFilesB("name.txt");
fcontent:=AFilesB("name.txt",0,fsize); // fails if fsize>10000
fcontent:=CHAR(fcontent);

This was the only way I found so far to read text files in, and it worked well until I tested a file larger than 10000 Bytes. After some more investigation and troubleshooting it appears to be caused by a limitation of how long list objects can be. Can someone confirm that?

I have a workaround, reading the file in 9999 Byte chunks and assembling the components of the string afterwards, but was surprised to find this limitation. (AFilesB returns a list of character codes for the string.)
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
List Length Maximum - Jacob Wall - 08-19-2017 11:16 PM
RE: List Length Maximum - StephenG1CMZ - 08-20-2017, 03:58 PM
RE: List Length Maximum - Jacob Wall - 08-20-2017, 06:40 PM
RE: List Length Maximum - wangchong01 - 08-21-2017, 12:19 AM
RE: List Length Maximum - pier4r - 08-21-2017, 06:02 AM



User(s) browsing this thread: 1 Guest(s)