export class TextBuilder
{
	// Attributes
	private _text: string[];
	
	// Constructor
	constructor()
	constructor(initialText: string)
	constructor(initialText?: string)
	{
		this._text = [];
		if(initialText !== undefined)
		{
			this._text[0] = initialText;
		}
	}
	
	// Properties
	
	// Methods
	AppendText(text: string): void
	{
		this._text.push(text);
	}
	
	Result(): string
	{
		return this.ReadText();
	}
	
	private ReadText(): string
	{
		let output: string = "";
		for(let i in this._text)
		{
			output = output + this._text[i];
		}
		return output;
	}
}