I am dynamically creating FlowDocumentScrollViewer how do I open .txt file in FlowDocumentScrollViewer? I used this when I had richtextbox, but how do I do the same in FlowDocumentScrollViewer?
fStream = new FileStream(filePath, FileMode.OpenOrCreate);
range = new TextRange(mcRTB.Document.ContentStart, mcRTB.Document.ContentEnd);
range.Load(fStream, DataFormats.Text);
Got it: