This is what my complete code is
I am getting error in the stream reader(filepath)Code:System.Diagnostics.Process.Start("cmd.exe", @"/c route print > d:\file.txt"); // Get the route print to text file StreamReader streamReader = new StreamReader(filePath); string readtext = streamReader.ReadToEnd(); streamReader.Close(); System.IO.File.Delete("d:\file.txt"); //Delete the output dump fileCode:Could not find file 'd:\file.txt'..





Reply With Quote