diff --git a/Test.obn b/Test.obn
index 8c3a8d1458efc80ddf4837c106b664b70a3abfae..f47edbbb416fd2154a0f16c7bfbaf310923269bc 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
MODULE Test;
-IMPORT Out;
+IMPORT Files;
+
+TYPE
+ String = POINTER TO ARRAY OF CHAR;
+ R* = RECORD ch : CHAR END;
VAR
VAR
- msg : ARRAY 20 OF CHAR;
+ f : Files.File;
+ r : Files.Rider;
+ m : R;
+ s : String;
BEGIN
BEGIN
- Out.Open;
- COPY("Hello World!", msg);
- Out.String(msg); Out.Ln;
- COPY("Hell!", msg);
- Out.String(msg); Out.Ln;
- COPY("The quick brown fox jumps over the lazy dog", msg);
- Out.String(msg); Out.Ln;
- msg := "Hello World!";
- Out.String(msg); Out.Ln;
+ f := Files.Old("Test.obn");
+ ASSERT(f # NIL);
+ Files.Set(r, f, 0);
+
+ Files.Read(r, m.ch);
+
+ ASSERT(s = NIL);
END Test.
END Test.