diff --git a/Test.obn b/Test.obn
index fa347cddf19074ac48f9ac84d99c4993074f5aef..f47edbbb416fd2154a0f16c7bfbaf310923269bc 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT Files, Out;
+IMPORT Files;
+
+TYPE
+ String = POINTER TO ARRAY OF CHAR;
+ R* = RECORD ch : CHAR END;
VAR
f : Files.File;
r : Files.Rider;
- len : LONGINT;
- x : POINTER TO ARRAY OF CHAR;
+ m : R;
+ s : String;
BEGIN
f := Files.Old("Test.obn");
ASSERT(f # NIL);
Files.Set(r, f, 0);
- len := Files.Length(f);
- NEW(x, len + 1);
+ Files.Read(r, m.ch);
- Files.ReadBytes(r, x, len);
- Out.String(x^); Out.Ln;
+ ASSERT(s = NIL);
END Test.