repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[2018-06] [System]: `MonoTlsStream` is now `IDisposable` and cleans up on...
[mono-project.git]
/
mono
/
tests
/
stream-writer.cs
blob
116bf9320bc3fcecaf7299af849b16aa87a44a66
1
using
System
;
2
using
System
.
IO
;
3
4
public class
Test
{
5
6
public static int
Main
() {
7
FileStream s
=
new
FileStream
((
IntPtr
)
1
,
FileAccess
.
Write
);
8
StreamWriter sw
=
new
StreamWriter
(
s
);
9
string
ts
=
"This is another test"
;
10
11
sw
.
WriteLine
(
ts
);
12
13
sw
.
WriteLine
(
123456
);
14
15
return
0
;
16
}
17
}
18
19