X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=d232953a80d3259d11c1a1987e2bd14d3a4c415c;hb=9aa6ede8ebe1b901501ad3cb49d79d6811a79dc9;hp=fa347cddf19074ac48f9ac84d99c4993074f5aef;hpb=1233fb1d5d8f67a8f5e970386c1c4cbb6691ec04;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index fa347cd..d232953 100644 --- a/Test.obn +++ b/Test.obn @@ -1,21 +1,14 @@ MODULE Test; -IMPORT Files, Out; +IMPORT SYSTEM, Out; + +TYPE + R = RECORD END; VAR - f : Files.File; - r : Files.Rider; - len : LONGINT; - x : POINTER TO ARRAY OF CHAR; + i : INTEGER; + l : LONGINT; BEGIN - 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; + i := SYSTEM.VAL(INTEGER, l); END Test.