StringBuffer in groovy

Remember that when one is using a StringBuffer , one needs to close() it or your program will exit with a half written file. I use this more often than not when writing large files for performance reasons.

Advertisements