I have a text file that contains about 100000 articles. The structure of file is:
.Document ID 42944-YEAR:5 .Date 03\\08\\11 .Cat political Article Content 1 .
Something like this:
using (var fileStream = File.OpenText(@"path to file")) { do { var fileLine = fileStream.ReadLine(); // process fileLine here } while (!fileStream.EndOfStream); }