String strAppPath = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName); String strFilePath = Path.Combine(strAppPath, "Words"); String strFullFilename = Path.Combine(strFilePath, "Negative.text"); string[] Negative_Words = File.ReadLines(strFullFilename).ToArray(); string toDisplay = string.Join(Environment.NewLine, Negative_Words); MessageBox.Show(toDisplay);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)