Post Reply 
List Length Maximum
08-20-2017, 06:40 PM
Post: #3
RE: List Length Maximum
The result from AFilesB is a "simple" list, and yes it is easy to see this limitation if you try to build a list longer than 10000. I suppose the limit was implemented because lists can hold many object types and memory concerns could be introduced. For reading and writing text, these lists are just reals and the net effect is that by default with AFilesB it is not possible to read file blocks longer than 10000 Bytes. The workaround previously mentioned works fine, but because this wasn't working as expected I was wondering if I was maybe not using the correct method.

AFiles returns something unexpected when calling a text file, I suppose it is because the file is not a "HP Prime object", or whatever the correct term is.

It's fast enough to iterate over a file, reading 10000 Bytes at a time, and likewise also to build a file 10000 Bytes at a time, so really no major issue just a learning experience.
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)