Don't reopen file for each row. Either keep writng to the same stream or simply write all at once with one of File
helper methods like File.WriteAllLines:
File.WriteAllLines(@"c:\filename.txt",
dt.Rows.OfType<DataRow>().Select(r => r.Item("word"));