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 ); } }