Add string to StringBuilder : StringBuilder « Development « Visual C++ .NET

Add string to StringBuilder


#include "stdafx.h"
using namespace System;
using namespace System::IO;
using namespace System::Text;

int main(array<System::String ^> ^args)
    StringBuilder ^tmppath = gcnew StringBuilder();

    tmppath->Append(" ");

    String ^path = tmppath->ToString()->Trim();

    return 0;


Related examples in the same category

1.Convert StringBuilder to String
2.Append to StringBuilder
3.Convert StringBuilder to String
4.Replace String in StringBuilder
5.Insert String to StringBuilder
6.Append char array to StringBuilder