aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/tests/ints.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs-dotnet/src/tests/ints.cs')
-rw-r--r--cs-dotnet/src/tests/ints.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/cs-dotnet/src/tests/ints.cs b/cs-dotnet/src/tests/ints.cs
new file mode 100644
index 0000000..ea97820
--- /dev/null
+++ b/cs-dotnet/src/tests/ints.cs
@@ -0,0 +1,16 @@
1using System;
2using System.IO;
3using Com.Xagasoft.Gats;
4
5class Ints
6{
7 static void Main()
8 {
9 FileStream file = new FileStream("test.gats", FileMode.Open,
10 FileAccess.Write );
11 long iVal = 0xfffffe;
12 GatsInteger i = new GatsInteger( iVal );
13 i.Write( file );
14 Console.WriteLine("Read int: " + i.Value );
15 }
16}