this is my complete codeBut 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 file
the File is getting genereatedCode:Could not find file 'd:\file.txt'..




Reply With Quote