Questions tagged as 'stringbuilder'

4
answers

What is the most appropriate way to concatenate strings?

There are different methods for concatenating strings, such as Concatenating with the "abc" + str Formatting String.Format("abc{0}", str); Using StringBuilder new StringBuilder("abc").Append(str); Using the Concat...
asked by 11.12.2013 / 21:42
1
answer

Why should I use the StringBuilder class instead of the String class?

Why these two classes are different, as it seems to me that they could be a single class. For example, the method Append , it seems to me that it does the same thing as the + operator.     
asked by 03.10.2015 / 03:14
3
answers

String handling in alternate positions

I have an output via EXPECT access to an equipment and I get the data below: $result1 = " =============================================================================== Service Basic Information...
asked by 12.06.2017 / 22:17
1
answer

When to use String and StringBuilder [duplicate]

There is another question about What is the most appropriate way to concatenate strings? . It explains the possible types of concatenations in C# . But when should we use System.String and when should we use System.Text.Str...
asked by 29.08.2017 / 10:58
1
answer

Load txt file through a list c #

I make a query in the database and put it in a list, then I scan each list item through foreach to query other tables according to the Id of each line covered. If found, I would like to load a txt file for each line queried by jump...
asked by 19.11.2015 / 14:26
4
answers

Creating base date using StringBuilder

I'm creating my database with class sqliteOpenHelper , passing DB creation by String through StringBuilder . The problem is that you are only creating the first table, and then you do not create the next table, in which case I...
asked by 10.11.2015 / 23:27
1
answer

Delete Last Row - Java

I'm reading a CSV using BufferedReader reading row by line converting the result to a .txt. At the end of my txt is generating a line break after the last item. I'm trying to find a way to remove last line break after the last item in the list....
asked by 05.10.2017 / 16:29
4
answers

Creating base date using StringBuilder

I'm creating my database with class sqliteOpenHelper , passing DB creation by String through StringBuilder . The problem is that you are only creating the first table, and then you do not create the next table, in which case I...
asked by 10.11.2015 / 23:27
2
answers

How to send fields of a form by email in the format of a table?

My application takes some data that the user fills in the TextBox fields (txtCompany, txtContact, etc ...) and sends them to a preconfigured email. I can send the data through smtp, but are being sent without formatting. How to format the data t...
asked by 04.11.2016 / 18:11
1
answer

New Line StringBuilder message Box C #

I would like to show in a messagebox the records with line break. but the result is this: I'dlikeyoutostaylinebyline;Myimplementationlookslikethis: When I'm debugging, in builder.append I realize that the line break is not i...
asked by 05.05.2017 / 20:17