Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:19
n.podbielski18-Nov-12 21:19 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:28
taibc18-Nov-12 21:28 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski18-Nov-12 21:34
n.podbielski18-Nov-12 21:34 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc18-Nov-12 21:36
taibc18-Nov-12 21:36 
AnswerRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 4:18
mvePIEBALDconsult20-Nov-12 4:18 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 5:44
n.podbielski20-Nov-12 5:44 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 6:29
mvePIEBALDconsult20-Nov-12 6:29 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 7:43
n.podbielski20-Nov-12 7:43 
Ok let's pretend that this means that he can only know how to read text from text box with LF.
He added that code
C#
strContent += (txtParagraph.Text != "") ? "<CONTENT>" + txtParagraph.Text + "</CONTENT>" : "<CONTENT />";

This read text from text box and ads xml tags, and makes string strContent. Where are this "know how to" read text with only LF? This read simple Text property form text box. Since text box
use CR+LF this read text with CR+LF? So why he wrote that he only "know how to" read only LF? Where is sense in that?
More. Line above text you quoted he wrote
Quote:
Because this is a paragraph, so the text value of the text box will include characters like: "\r\n" and "\r\n ".

So he wrote that text box have CR+LF, then in next sentence wrote that he only "know how to" read LF and pasted code sample with reading text box with CR+LF chars.
Where is sense in that? There is non.
Obviously is writing some king of app to edits XML content with only LF, and from text box gets CR+LF.
You would get to the same if you would spend on it more than half a minute, think and do not reply with 'you are bad programmer because you like simple solution' Sigh | :sigh:
No more Mister Nice Guy... >: |

GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 10:45
mvePIEBALDconsult20-Nov-12 10:45 
GeneralRe: Write and read a paragraph in XML format string ? Pin
n.podbielski20-Nov-12 11:03
n.podbielski20-Nov-12 11:03 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 13:45
mvePIEBALDconsult20-Nov-12 13:45 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc20-Nov-12 14:30
taibc20-Nov-12 14:30 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 17:08
mvePIEBALDconsult20-Nov-12 17:08 
GeneralRe: Write and read a paragraph in XML format string ? Pin
taibc20-Nov-12 17:33
taibc20-Nov-12 17:33 
GeneralRe: Write and read a paragraph in XML format string ? Pin
PIEBALDconsult20-Nov-12 18:08
mvePIEBALDconsult20-Nov-12 18:08 
Question[Help] C# .txt Pin
mumbot18-Nov-12 14:03
mumbot18-Nov-12 14:03 
AnswerRe: [Help] C# .txt Pin
Praveen Raghuvanshi18-Nov-12 18:30
professionalPraveen Raghuvanshi18-Nov-12 18:30 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 19:43
mumbot18-Nov-12 19:43 
GeneralRe: [Help] C# .txt Pin
V.19-Nov-12 0:37
professionalV.19-Nov-12 0:37 
GeneralRe: [Help] C# .txt Pin
PIEBALDconsult23-Nov-12 9:46
mvePIEBALDconsult23-Nov-12 9:46 
AnswerRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:04
omisheikh18-Nov-12 21:04 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 21:13
mumbot18-Nov-12 21:13 
GeneralRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:19
omisheikh18-Nov-12 21:19 
GeneralRe: [Help] C# .txt Pin
mumbot18-Nov-12 21:31
mumbot18-Nov-12 21:31 
GeneralRe: [Help] C# .txt Pin
omisheikh18-Nov-12 21:40
omisheikh18-Nov-12 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.