Click here to Skip to main content
16,016,759 members
Home / Discussions / C#
   

C#

 
GeneralRe: Console.write line Pin
nesfrank12-Nov-08 5:57
nesfrank12-Nov-08 5:57 
GeneralRe: Console.write line Pin
Vikram A Punathambekar12-Nov-08 6:22
Vikram A Punathambekar12-Nov-08 6:22 
AnswerRe: Console.write line Pin
Guffa12-Nov-08 5:24
Guffa12-Nov-08 5:24 
GeneralRe: Console.write line Pin
nesfrank12-Nov-08 5:28
nesfrank12-Nov-08 5:28 
GeneralRe: Console.write line Pin
Vikram A Punathambekar12-Nov-08 5:35
Vikram A Punathambekar12-Nov-08 5:35 
GeneralRe: Console.write line Pin
nesfrank12-Nov-08 5:47
nesfrank12-Nov-08 5:47 
GeneralRe: Console.write line Pin
Guffa12-Nov-08 6:17
Guffa12-Nov-08 6:17 
GeneralRe: Console.write line Pin
Vikram A Punathambekar12-Nov-08 6:20
Vikram A Punathambekar12-Nov-08 6:20 
There is NO code to be written. Your app (let's call it Foo.exe) has several Console.WriteLine() statements which write to the console, and you want them to be written to a file (let's call it AppLog.txt).

Right now, this is how you would invoke your app:
C:\>Foo.exe
Simply change that to
C:\>Foo.exe > AppLog.txt
If you want the app to append to the file rather than overwrite, use
C:\>Foo.exe >> AppLog.txt
Obviously, you will have to use the correct path, etc.

Cheers,
Vıkram.
"You idiot British surprise me that your generators which grew up after Mid 50s had no brain at all." - Adnan Siddiqi.

AnswerRe: Console.write line Pin
User 665812-Nov-08 8:21
User 665812-Nov-08 8:21 
Questionneed Null value to sotre in int [modified] Pin
mutafa8112-Nov-08 4:20
mutafa8112-Nov-08 4:20 
AnswerRe: need Null value to sotre in int Pin
led mike12-Nov-08 4:25
led mike12-Nov-08 4:25 
GeneralRe: need Null value to sotre in int Pin
J4amieC12-Nov-08 4:54
J4amieC12-Nov-08 4:54 
GeneralRe: need Null value to sotre in int Pin
led mike12-Nov-08 5:06
led mike12-Nov-08 5:06 
AnswerRe: need Null value to sotre in int Pin
J4amieC12-Nov-08 4:56
J4amieC12-Nov-08 4:56 
GeneralRe: need Null value to sotre in int Pin
mutafa8112-Nov-08 11:08
mutafa8112-Nov-08 11:08 
QuestionUnhandled exception while compiling c# project in mono Pin
Member 395619812-Nov-08 3:56
Member 395619812-Nov-08 3:56 
AnswerRe: Unhandled exception while compiling c# project in mono Pin
ScottM112-Nov-08 4:14
ScottM112-Nov-08 4:14 
AnswerRe: Unhandled exception while compiling c# project in mono Pin
Dave Kreskowiak12-Nov-08 4:15
mveDave Kreskowiak12-Nov-08 4:15 
GeneralRe: Unhandled exception while compiling c# project in mono Pin
#realJSOP12-Nov-08 5:03
professional#realJSOP12-Nov-08 5:03 
GeneralRe: Unhandled exception while compiling c# project in mono Pin
Dave Kreskowiak12-Nov-08 12:04
mveDave Kreskowiak12-Nov-08 12:04 
QuestionAlligning Dynamic Radio button [modified] Pin
B8712-Nov-08 2:49
B8712-Nov-08 2:49 
AnswerRe: Alligning Dynamic Radio button Pin
Andrew Rissing12-Nov-08 3:46
Andrew Rissing12-Nov-08 3:46 
AnswerRe: Alligning Dynamic Radio button Pin
ScottM112-Nov-08 3:53
ScottM112-Nov-08 3:53 
QuestionDirectory Contents Change Comparison Pin
Jammer12-Nov-08 2:39
Jammer12-Nov-08 2:39 
AnswerRe: Directory Contents Change Comparison Pin
Simon P Stevens12-Nov-08 3:13
Simon P Stevens12-Nov-08 3:13 

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.