Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: XNA: Game updating slowly Pin
jdneul4-Nov-09 6:54
jdneul4-Nov-09 6:54 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 6:58
harold aptroot4-Nov-09 6:58 
GeneralRe: XNA: Game updating slowly Pin
jdneul4-Nov-09 7:46
jdneul4-Nov-09 7:46 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 9:19
harold aptroot4-Nov-09 9:19 
GeneralRe: XNA: Game updating slowly Pin
jdneul5-Nov-09 1:23
jdneul5-Nov-09 1:23 
GeneralRe: XNA: Game updating slowly Pin
harold aptroot5-Nov-09 1:27
harold aptroot5-Nov-09 1:27 
QuestionPaper Setting Problem in Dot Matrix Printer using Crystal Report. Pin
sharad Pyakurel4-Nov-09 1:00
sharad Pyakurel4-Nov-09 1:00 
QuestionUsing StreamWriter twice Pin
Trollslayer4-Nov-09 0:56
mentorTrollslayer4-Nov-09 0:56 
I have a StreamWriter used to create log files and it works fine the first time but if I try to use it again writes fail because the file is not open to write to.
This is called to create a new log file:
FileStream fs = new FileStream(timestr, FileMode.CreateNew);
ScriptData.LogFile = new StreamWriter(fs);
ScriptData.LogFile.WriteLine("Logile created {0:yyyy'-'MM'-'dd'T'HHmmss}.log", DateTime.Now);

This is called to close a file:
ScriptData.LogFile.WriteLine("Script {0} completed.", ScriptData.LogName);
ScriptData.LogFile.Close();        // Only close when exiting root script file
ScriptData.LogFile.Dispose();

ScriptData persists outside the scope of these calls.
Any ideas? All I want to do is be able to write ASCII text to log files.
Thanks.

Join the cool kids - Come fold with us[^]

AnswerRe: Using StreamWriter twice Pin
Covean4-Nov-09 1:15
Covean4-Nov-09 1:15 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 4:01
mentorTrollslayer4-Nov-09 4:01 
GeneralRe: Using StreamWriter twice Pin
Covean4-Nov-09 5:12
Covean4-Nov-09 5:12 
AnswerRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 4:22
mvePete O'Hanlon4-Nov-09 4:22 
GeneralRe: Using StreamWriter twice Pin
Trollslayer4-Nov-09 5:40
mentorTrollslayer4-Nov-09 5:40 
GeneralRe: Using StreamWriter twice Pin
Pete O'Hanlon4-Nov-09 6:39
mvePete O'Hanlon4-Nov-09 6:39 
Questionsending receiving sms Pin
sahoo.fm4-Nov-09 0:33
sahoo.fm4-Nov-09 0:33 
AnswerRe: sending receiving sms Pin
King Julien4-Nov-09 0:46
King Julien4-Nov-09 0:46 
AnswerRe: sending receiving sms Pin
Giorgi Dalakishvili4-Nov-09 0:49
mentorGiorgi Dalakishvili4-Nov-09 0:49 
QuestionIs it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 0:15
dojohansen4-Nov-09 0:15 
AnswerRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 9:33
mvePIEBALDconsult4-Nov-09 9:33 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 10:08
dojohansen4-Nov-09 10:08 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
Pete O'Hanlon4-Nov-09 10:21
mvePete O'Hanlon4-Nov-09 10:21 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
PIEBALDconsult4-Nov-09 10:45
mvePIEBALDconsult4-Nov-09 10:45 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? Pin
dojohansen4-Nov-09 13:22
dojohansen4-Nov-09 13:22 
GeneralRe: Is it possible to add an interface implementation to precompiled types at runtime? [modified] Pin
PIEBALDconsult4-Nov-09 15:07
mvePIEBALDconsult4-Nov-09 15:07 
Questionhow to use towords() function in crystal reports...... Pin
PravinYog4-Nov-09 0:14
PravinYog4-Nov-09 0:14 

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.