Top "Stringbuilder" questions

Stringbuilder is a class that provides a convenient and efficient way of working with text data in Java and .NET framework.

Difference between string and StringBuilder in C#

What is the difference between string and StringBuilder? Also, what would be some examples for understanding?

c# string stringbuilder
Most efficient solution for reading CLOB to String, and String to CLOB in Java?

I have a big CLOB (more than 32kB) that I want to read to a String, using StringBuilder. How do …

java stringbuilder clob
java: use StringBuilder to insert at the beginning

I could only do this with String, for example: String str=""; for(int i=0;i<100;i++){ str=i+str; } …

java string insert append stringbuilder
What is the simplest way to write the contents of a StringBuilder to a text file in .NET 1.1?

I have to use StringBuilder instead of a List of strings because of being stuck with .NET 1.1 for this project. …

c# .net file-io windows-ce stringbuilder
Best way to remove the last character from a string built with stringbuilder

I have the following data.AppendFormat("{0},",dataToAppend); The problem with this is that I am using it in a loop …

c# stringbuilder
How to use StringBuilder wisely?

I am little confused about using StringBuilder class, first: A string object concatenation operation always creates a new object from …

c# .net string memory stringbuilder
Forcing StreamWriter to change Encoding

I am trying to save a file using DialogResult and StringBuilder. After making the text, I am calling the following …

c# stringbuilder streamwriter
Write StringBuilder to Stream

What is the best method of writing a StringBuilder to a System.IO.Stream? I am currently doing: StringBuilder message = …

c# stream stringbuilder
Best practices/performance: mixing StringBuilder.append with String.concat

I'm trying to understand what the best practice is and why for concatenating string literals and variables for different cases. …

java string stringbuilder string-concatenation
How to check null on StringBuilder?

I want to check for null or empty specifically in my code. Does empty and null are same for StringBuilder …

java stringbuilder