... | ... | @@ -961,7 +961,7 @@ class FileStreamEx |
|
|
sw.Flush();
|
|
|
}
|
|
|
|
|
|
using (FileStream fs = new FileStream("test2.log", FileMode.Append, FileAccess.Write ,FileShare.Read))
|
|
|
using (FileStream fs = new FileStream("test2.log", FileMode.Append, FileAccess.Write ,FileShare.None))
|
|
|
//test2.log라는 파일을 없으면 만들고 있으면 기존 내용에 덧붙인다.
|
|
|
//실행 횟수만큼 반복해서 뒤에 덧붙여진다.
|
|
|
//단어의 길이를 나타내는 바이트가 앞에 덧붙여지기 때문에 메모장으로 열면 그 바이트도 문자로 인식되어 메모장에서 보인다.
|
... | ... | |