2 of 2
added 27 characters in body

Splitting text file into double words using c#

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#?