I have text file. I want to segment the text into double words. The input like: `
str=I am currently enrolled in a PhD program
The output must be like:
I am
currently enrolled
in a
PhD program
How can I get this output using c#?