1. Tobias Oehler
  2. PowerBuilder
  3. Tuesday, 24 October 2017 14:32 PM UTC

When I try to open a text file larger than 600 MB with the function "FileReadEx" an error is thrown by the function.
However, if I open a file of about 300 MB this works without problems. Is their any sizelimit of the "FileReadEx" function?

My call is as follows:

blob lb_blob
longlong li_fnum, li_bytes

li_fnum = FileOpen("C:\temp\test.txt", StreamMode!)
li_bytes = FileReadEx(li_fnum, lb_blob)
FileClose(li_fnum)
 
The error message is as follows:
 
Bad runtime function reference at line 142 in function w_....
 
Info:
The development system has about 16GB of RAM.
 
 
 
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 25 October 2017 02:47 AM UTC
  2. PowerBuilder
  3. # 1

The return value from FileReadEx is a long.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 24 October 2017 14:45 PM UTC
  2. PowerBuilder
  3. # 2

Hi Tobias;

  Here is an alternate solution that I use for super large file handling .... click here.

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.