heyas!
have some problem here to process a (text) file.
some lines seem to be too long for beeing read (or placed into
a string)...
anybody knowing a workaround?
thx
muab
lines in file too long for string...
How long is the line?
String type variables are limted to 64k (with most of the string functions further limiting that to 63999 bytes)..
You could use memory buffers for storing the data but manipulating those is a little tricky..
Check out this http://www.purebasic.org/comments.php?id=12_0_1_0_C7 for a few functions to help - though that might not be a total solution depending on what you're trying to do..
Also, check out the fastfile library from the announcements forum, viewtopic.php?t=5655&start=30
String type variables are limted to 64k (with most of the string functions further limiting that to 63999 bytes)..
You could use memory buffers for storing the data but manipulating those is a little tricky..
Check out this http://www.purebasic.org/comments.php?id=12_0_1_0_C7 for a few functions to help - though that might not be a total solution depending on what you're trying to do..
Also, check out the fastfile library from the announcements forum, viewtopic.php?t=5655&start=30
Last edited by Karbon on Sat Nov 01, 2003 5:54 pm, edited 1 time in total.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Ok, so how long is the line that you're trying to read? 
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
I thought you were trying to read a line of text from a file 
Don't know about the editor problems, have you checked out JaPBE? It's an alternate editor - check the announcements forum for a download link.
Don't know about the editor problems, have you checked out JaPBE? It's an alternate editor - check the announcements forum for a download link.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Oh.. ok, lets back up.
What error or problem are you having when trying to read this line. Is your program crashing?
What error or problem are you having when trying to read this line. Is your program crashing?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net

