I just thought of this: using an array for this still requires twice as much memory, which, when dealing with large files may not be your best option. So, for those cases where you would likely benefit most the memory disadvantage is also greatest.
Speaking for myself, this is not a viable option.

Ronald Vogelaar
--
http://www.rovosoft.com

----- Original Message ----- From: "Kevin Windham" <[EMAIL PROTECTED]>

It was posted earlier in the thread. Basically instead of concatenating a string from the file to a buffer string each time you read, you append a string to an array of strings. Then at the end of your reading you "join" the array into one string. This prevents creating a string every time you append instead of concatenate.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to