views:

54

answers:

2

Is there a way of manipulating big blocks of text?

For example, I have a web site where users can write fictions. The String class is insufficient for storing chapters so someone found a workaround by mapping to a Blob. That's for persistence and in general I'm wondering if there are alternatives to using String arrays.

+1  A: 

How about using StringBuffers.

KMan
Note that `StringBuffer` is a legacy class. Use `StringBuilder` instead.
Jesper
+3  A: 

Or StringBuilder, the unsynchronized but faster version of StringBuffer.

Daniel Engmann