X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=fa347cddf19074ac48f9ac84d99c4993074f5aef;hb=ba8ed2cfa675b23cb19cba538f719a07a79ffb7f;hp=67132268d6a753e3cfdc990ac2dec0eaed6e1670;hpb=d25fb653bfe19a696d3f53abd784d32ba2d3ee03;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 6713226..fa347cd 100644 --- a/Test.obn +++ b/Test.obn @@ -1,13 +1,21 @@ MODULE Test; +IMPORT Files, Out; + VAR - i : INTEGER; - f : REAL; - d : LONGREAL; + f : Files.File; + r : Files.Rider; + len : LONGINT; + x : POINTER TO ARRAY OF CHAR; BEGIN - i := 5 DIV 3; - f := 5 / 3; - d := 5 / 3.0; - d := 5 / 3.0D0; + f := Files.Old("Test.obn"); + ASSERT(f # NIL); + Files.Set(r, f, 0); + + len := Files.Length(f); + NEW(x, len + 1); + + Files.ReadBytes(r, x, len); + Out.String(x^); Out.Ln; END Test.