Click here to Skip to main content
15,921,382 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
//This file has been automatically generated by PTranslator V3.0.0.101 (DEBUG)\r\n\r\n// NOTE: You should translate only text between quotes (like \"this example\")\r\n//\t and pay attention to any character...

i want to remove \r\n beacuse its repeating tow times in CString mfc ,not first one it should look like

//This file has been automatically generated by PTranslator V3.0.0.101 (DEBUG)\r\n// NOTE: You should translate only text between quotes (like \"this example\")//\t and pay attention to any character...

any suugestions please
Posted
Comments
[no name] 29-Apr-15 2:33am    
IT will replace all i want first chaarcter to be presented from second onwards it should be reomved

IT will replace all i want first chaarcter to be presented from second onwards it should be reomved
 
Share this answer
 
You can use the Replace funktion to replace with an empty string.

myString.Replace("\r\n","");
 
Share this answer
 
Comments
Jochen Arndt 29-Apr-15 2:45am    
That will remove all "\r\n" pairs.

Using Replace("\r\n\r\n", "\r\n") does it for all double pairs but may fail if more than two pairs are present in a row.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900