>Oh ... I thought you meant you found a way to use StringBuilder directly. Actually, I *did* find a way to do it this morning, but don't know if you'd still have the memory problem.
>
>Instead of using the .ToString(), pass the StringBuilder itself:
>
>
>'loStreamWriter.Write(toStringBuilder.ToString()) 'do not use this one
>
>' use this instead
>loStreamWriter.Write(toStringBuilder)
>
>
>Did you try this variation and still run into memory problems?
Yes, I tried that last night and ended up in the same problem.