You can read all the text document present inside a drive in your computer .You can also store that text in the database using this code.
DirectoryInfo dir = new DirectoryInfo(@"C:");
foreach (DirectoryInfo dirInfo in dir.GetDirectories())
{
string fileName = dirInfo.Name;
string[] arrst = fileName.Split('.');
if (arrst.Length > 0)
{
if (arrst[1] == "txt")
{
TextReader tr = new StreamReader(arrst[1]);
string content = tr.ReadLine();
//insert this "content" to the database
}
}
}