BB> This however will not solve the problems of
BB> - files > 32K
BB> - disk read errors
BB> - other failures in reading the file.
BB> What's more, I dont want the users to see this nagging default
BB> exceptionhandler.
BB> Should I replace the LoadFromFile method with my own ??
If I can add my 2 cents...The LoadFromFile method is not the only way to get
text into a TMemo component. You could write code that will populate it up to
it's limit using old fashioned File I/O techniques. If for example you have a
64K file, you could put 32K into the TMemo and leave the rest on Disk or in a
buffer until the data is needed, then clear the TMemo and tranfer the new
block in.
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *
|