Franz Steinhäusler: > Would you suggest a data strcture of one string per line? > A tree structure for the data elements?? A common data structure used for text editors is a gapped buffer: http://www-2.cs.cmu.edu/~wjh/papers/byte.html Neil