X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=Test.obn;h=0bad0ad763fe3b298b127518a3af3fbc2e878678;hp=fa347cddf19074ac48f9ac84d99c4993074f5aef;hb=0570527a2279ee6bd14b4c08e653b6d68369475a;hpb=0b68ac1af511e1e47b1e6a8f5617200db6819ee5 diff --git a/Test.obn b/Test.obn index fa347cd..0bad0ad 100644 --- a/Test.obn +++ b/Test.obn @@ -1,21 +1,12 @@ MODULE Test; -IMPORT Files, Out; +IMPORT SYSTEM; VAR - f : Files.File; - r : Files.Rider; - len : LONGINT; - x : POINTER TO ARRAY OF CHAR; + ptr : SYSTEM.PTR; + arr : POINTER TO ARRAY OF INTEGER; 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; + NEW(arr, 20); + ptr := arr; END Test.