TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
diamond diamond
NA
133
55.7k
puting value from txt file to process.StandardOutput.Read()
Nov 1 2014 12:13 PM
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);
}
Reply
Answers (
2
)
marked specific location in google map
Sending Email Using C#