c# - File.Exists false when created by tesseract -


I use Tescract to get text from captcha image. I use this code

  process p = new process (); P.StartInfo.FileName = Server.MapPath ("~ / app / tesseract.exe"); P.StartInfo.Arguments = imgSavePath + "+ + txtSavePath; p.Start (); p.WaitForExit (); Bool exists = file.excel (txtSavePath);   

txtSavePath is built in Windows Explorer, I can open it and read the text in it. But the present variable is incorrect is it strange that someone tell me Why can I use StreamReader to read the text in a built-in file?

TaskTrack app output text file ".txt" extension; in your case, it should be:

  bool exists = File.Exists (txtSavePath + ".txt");    

Comments