Use Environment.NewLine
whenever you want in any string. An example:
string text = "fkdfdsfdflkdkfk@dfsdfjk72388389@kdkfkdfkkl@jkdjkfjd@jjjk@";
text = text.Replace("@", "@" + System.Environment.NewLine);
More Related Contents:
- What is the difference between String and string in C#?
- Why .NET String is immutable? [duplicate]
- Can I convert a C# string value to an escaped string literal?
- What is the difference between String and string in C#?
- Why would you use String.Equals over ==? [duplicate]
- String output: format or concat in C#?
- Differences in string compare methods in C#
- How can I split a string with a string delimiter? [duplicate]
- How do I write a backslash (\) in a string?
- How to replace multiple white spaces with one white space
- Evaluate string with math operators [duplicate]
- Splitting a string / number every Nth Character / Number?
- Convert JSON String to JSON Object c#
- Is String.Contains() faster than String.IndexOf()?
- Is there an alternative to string.Replace that is case-insensitive?
- How to replace part of string by position?
- Is String a primitive type?
- string.IsNullOrEmpty(string) vs. string.IsNullOrWhiteSpace(string)
- How to return text from Native (C++) code
- If strings are immutable in .NET, then why does Substring take O(n) time?
- string.ToLower() and string.ToLowerInvariant()
- @(at) sign in file path/string [duplicate]
- C# equivalent to Java’s charAt()?
- String Interpolation vs String.Format
- Open a file and replace strings in C#
- Regex nested parentheses
- How many String objects will be created when using a plus sign?
- Is there any generic Parse() function that will convert a string to any type using parse?
- Using StreamReader to check if a file contains a string
- How can I create all possible combinations for a set of words without repetition?