Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
puting value from txt file to process.StandardOutput.Read()
diamond diamond
Nov 1 2014 12:13 PM
1.1k
Reply
Hi,
I have a cce.exe program which I want to call it from C#. This program returns its output in TXT file.
Now I want to read this file and put it in process.StandardOutput.ReadToEnd()
Please help
Thanks in advance,
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "C:\\cce.exe";
psi.RedirectStandardOutput = true;
psi.UseShellExecute = false;
Process process = Process.Start(psi);
if (process.WaitForExit((int)TimeSpan.FromSeconds(10).TotalMilliseconds))
{
string bytes_result = process.StandardOutput.ReadToEnd(); ??? I should read txt file in put it in
bytes = Convert.ToDouble(bytes_result);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
marked specific location in google map
Sending Email Using C#