Click here to Skip to main content
15,566,102 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# application obtain results of program it executes Pin
dbaseman1-Sep-12 18:37
dbaseman1-Sep-12 18:37 
GeneralRe: C# application obtain results of program it executes Pin
jschell2-Sep-12 8:20
jschell2-Sep-12 8:20 
AnswerRe: C# application obtain results of program it executes Pin
Mycroft Holmes1-Sep-12 14:54
professionalMycroft Holmes1-Sep-12 14:54 
QuestionC# obtain results of program it calls Pin
dcof1-Sep-12 8:41
dcof1-Sep-12 8:41 
AnswerRe: C# obtain results of program it calls Pin
AmitGajjar1-Sep-12 17:19
professionalAmitGajjar1-Sep-12 17:19 
AnswerRe: C# obtain results of program it calls Pin
BobJanova3-Sep-12 2:36
BobJanova3-Sep-12 2:36 
QuestionC# console log file Pin
dcof1-Sep-12 8:07
dcof1-Sep-12 8:07 
AnswerRe: C# console log file Pin
Dr.Walt Fair, PE1-Sep-12 8:39
professionalDr.Walt Fair, PE1-Sep-12 8:39 
I'm not sure I understand your problem, but if you just want to save results to a log file rather than printing to the command window, then open the file, write to it and close it. Here's what I do to save computed results in a console app.
C#
StreamWriter outFile1 = new StreamWriter(FILENAME1);
outFile1.WriteLine(Heading);
outFile1.WriteLine(Title + DateTime.Now.ToString());
...
// Compute and write results of interest
...
// Finish and close output file
outFile1.WriteLine("Termination due to " + TerminationReason);
outFile1.WriteLine();
outFile1.Close();

CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


AnswerRe: C# console log file Pin
AmitGajjar1-Sep-12 17:27
professionalAmitGajjar1-Sep-12 17:27 
AnswerRe: C# console log file Pin
PIEBALDconsult1-Sep-12 18:44
professionalPIEBALDconsult1-Sep-12 18:44 
QuestionC# 2008 dynamic path Pin
sc steinhayse1-Sep-12 7:36
sc steinhayse1-Sep-12 7:36 
AnswerRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:03
professionalPIEBALDconsult1-Sep-12 8:03 
GeneralRe: C# 2008 dynamic path Pin
sc steinhayse1-Sep-12 8:09
sc steinhayse1-Sep-12 8:09 
GeneralRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:26
professionalPIEBALDconsult1-Sep-12 8:26 
GeneralRe: C# 2008 dynamic path Pin
Mycroft Holmes1-Sep-12 14:43
professionalMycroft Holmes1-Sep-12 14:43 
QuestionSelect next control if control is in groupbox? Pin
GrooverFromHolland1-Sep-12 1:47
GrooverFromHolland1-Sep-12 1:47 
AnswerRe: Select next control if control is in groupbox? Pin
OriginalGriff1-Sep-12 2:47
mvaOriginalGriff1-Sep-12 2:47 
GeneralRe: Select next control if control is in groupbox? Pin
GrooverFromHolland1-Sep-12 6:35
GrooverFromHolland1-Sep-12 6:35 
AnswerRe: Select next control if control is in groupbox? Pin
Eddy Vluggen1-Sep-12 4:36
professionalEddy Vluggen1-Sep-12 4:36 
AnswerRe: Select next control if control is in groupbox? Pin
BillWoodruff3-Sep-12 16:38
professionalBillWoodruff3-Sep-12 16:38 
QuestionExperimentation - Would Like Feedback Pin
Matt U.31-Aug-12 10:59
Matt U.31-Aug-12 10:59 
AnswerRe: Experimentation - Would Like Feedback Pin
SledgeHammer0131-Aug-12 11:52
SledgeHammer0131-Aug-12 11:52 
AnswerRe: Experimentation - Would Like Feedback Pin
ekolis31-Aug-12 12:26
ekolis31-Aug-12 12:26 
AnswerRe: Experimentation - Would Like Feedback Pin
Ravi Bhavnani31-Aug-12 13:36
professionalRavi Bhavnani31-Aug-12 13:36 
AnswerRe: Experimentation - Would Like Feedback Pin
OriginalGriff1-Sep-12 2:53
mvaOriginalGriff1-Sep-12 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.