diff --git a/Test.obn b/Test.obn
index 82fbedbbc7c705e6e6a7a46f3cfb2a2e3c34c7d2..fa347cddf19074ac48f9ac84d99c4993074f5aef 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
+IMPORT Files, Out;
+
VAR
- i : SHORTINT;
- s : SET;
+ f : Files.File;
+ r : Files.Rider;
+ len : LONGINT;
+ x : POINTER TO ARRAY OF CHAR;
BEGIN
- i := SHORT(12345);
+ 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.