Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Firefox Password Backup program! [modified] Pin
nhqlbaislwfiikqraqnm24-Aug-09 1:21
nhqlbaislwfiikqraqnm24-Aug-09 1:21 
GeneralRe: Firefox Password Backup program! Pin
nhqlbaislwfiikqraqnm26-Aug-09 3:36
nhqlbaislwfiikqraqnm26-Aug-09 3:36 
QuestionMultiline Textbox Pin
Nekkantidivya23-Aug-09 23:59
Nekkantidivya23-Aug-09 23:59 
AnswerRe: Multiline Textbox Pin
Henry Minute24-Aug-09 0:06
Henry Minute24-Aug-09 0:06 
QuestionMultiline Textbox scrollbar Pin
Nekkantidivya23-Aug-09 23:56
Nekkantidivya23-Aug-09 23:56 
QuestionProblem in reading a log file Pin
m.samar23-Aug-09 23:38
m.samar23-Aug-09 23:38 
AnswerRe: Problem in reading a log file Pin
Keith Barrow23-Aug-09 23:43
professionalKeith Barrow23-Aug-09 23:43 
AnswerRe: Problem in reading a log file Pin
Luc Pattyn24-Aug-09 0:51
sitebuilderLuc Pattyn24-Aug-09 0:51 
Hi,

if your app-under-test is logging to a file by opening a file once, and writing to it, and finally closing it upon exit, then no other app can read that file while the AUT is running.

What I often do is keep the logfile closed and add a line of text to it using
public void log(string s) {
    File.AppendAllText(logfileName, s+Environment.NewLine);
}


And for apps that run for several hours, I switch logfiles regularly, so each file remains limited in size, can be deleted when no longer useful, can be copied/emailed to another location, etc.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Problem in reading a log file Pin
m.samar24-Aug-09 1:11
m.samar24-Aug-09 1:11 
QuestionDelegate calling from a child class Pin
FiniteRed23-Aug-09 23:21
FiniteRed23-Aug-09 23:21 
AnswerRe: Delegate calling from a child class Pin
DaveyM6923-Aug-09 23:30
professionalDaveyM6923-Aug-09 23:30 
QuestionHoe to include a schema reference in an xml file Pin
Jayaraman K23-Aug-09 23:21
Jayaraman K23-Aug-09 23:21 
QuestionDataGridView: for customized pasting operation first row is moved to end of the grid instead of getting overwritten!!!! [modified] Pin
Cracked-Down23-Aug-09 23:02
Cracked-Down23-Aug-09 23:02 
QuestionConverting string data(which contains EBCDIC, Packed decimal and Endian data) to byte array Pin
deep723-Aug-09 22:55
deep723-Aug-09 22:55 
AnswerRe: Converting string data(which contains EBCDIC, Packed decimal and Endian data) to byte array Pin
Luc Pattyn24-Aug-09 1:43
sitebuilderLuc Pattyn24-Aug-09 1:43 
Question[Message Deleted] Pin
DIPAK@EMSYS23-Aug-09 22:51
DIPAK@EMSYS23-Aug-09 22:51 
AnswerRe: Remoting ....need help PinPopular
Mycroft Holmes23-Aug-09 23:41
professionalMycroft Holmes23-Aug-09 23:41 
GeneralRe: Remoting ....need help Pin
DIPAK@EMSYS24-Aug-09 0:15
DIPAK@EMSYS24-Aug-09 0:15 
GeneralRe: Remoting ....need help Pin
leckey24-Aug-09 4:05
leckey24-Aug-09 4:05 
AnswerRe: Remoting ....need help Pin
stancrm24-Aug-09 0:41
stancrm24-Aug-09 0:41 
QuestionR6025 Pure Virtual Functiona Call Error. Pin
Tej_dev23-Aug-09 22:51
Tej_dev23-Aug-09 22:51 
Questiona puzzle for timing method Pin
dragon_yue23-Aug-09 22:31
dragon_yue23-Aug-09 22:31 
AnswerRe: a puzzle for timing method Pin
stancrm23-Aug-09 22:39
stancrm23-Aug-09 22:39 
AnswerRe: a puzzle for timing method Pin
Bekjong23-Aug-09 23:20
Bekjong23-Aug-09 23:20 
GeneralRe: a puzzle for timing method Pin
dragon_yue29-Aug-09 2:40
dragon_yue29-Aug-09 2:40 

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.