[Mono-bugs] [Bug 59182][Nor] New - Using StreamWriter with FileStreams opened in append mode doesn't work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 27 May 2004 10:16:50 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joergr@voelcker.com.

http://bugzilla.ximian.com/show_bug.cgi?id=59182

--- shadow/59182	2004-05-27 10:16:50.000000000 -0400
+++ shadow/59182.tmp.28054	2004-05-27 10:16:50.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 59182
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Using StreamWriter with FileStreams opened in append mode doesn't work
+
+Description of Problem:
+When you open a FileStream with FileMode.Append and write into it using
+StreamWriter the resulting file is garbage.
+
+Steps to reproduce the problem:
+1. Compile attached sample.
+2. Run it.
+3. Look into test.log
+
+Actual Results:
+Line 4
+
+Expected Results:
+Line 0
+Line 1
+Line 2
+Line 3
+Line 4
+
+How often does this happen? 
+Always
+
+Additional Information:
+A workaround for this problem exists:
+When the stream is opened implicitely by the StreamWriter it appends just fine.