aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/tests/ints.cs
blob: ea97820962173c1b8db49a2cd26be0c83280e38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.IO;
using Com.Xagasoft.Gats;

class Ints
{
    static void Main()
    {
        FileStream file = new FileStream("test.gats", FileMode.Open,
                FileAccess.Write );
        long iVal = 0xfffffe;
        GatsInteger i = new GatsInteger( iVal );
        i.Write( file );
        Console.WriteLine("Read int: " + i.Value );
    }
}