Link to home
Start Free TrialLog in
Avatar of lee88
lee88Flag for United States of America

asked on

StreamWriter question

Does this line of code:

m_LogFile = New StreamWriter(m_LogFolder & m_LogFileName)

overwrite the file if the file already exists? If so, how would you open "to append" instead of overwriting?
ASKER CERTIFIED SOLUTION
Avatar of joriszwaenepoel
joriszwaenepoel
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
StreamWriter = New StreamWriter("myfile.txt") 'creates a new text file
StreamWriter = New StreamWriter("C:\append.txt", True) 'append lines of text to a file.
@lee88 ..if there are several answers with multiple comments related to the question you can accept multiple solutions....
Avatar of lee88

ASKER

OK. Thanks for the help.