Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stream-writer.cs « tests « mono - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 116bf9320bc3fcecaf7299af849b16aa87a44a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.IO;

public class Test {

	public static int Main () {
		FileStream s = new FileStream ((IntPtr)1, FileAccess.Write);
		StreamWriter sw = new StreamWriter (s);
		string ts = "This is another test";

		sw.WriteLine (ts);

		sw.WriteLine (123456);

		return 0;
	}
}