diff --git a/Test.obn b/Test.obn
index c80345e560b5ed362e18a58a9a1abc772b084c44..0f09bade1d5103f0fca051137c9cc8b9dd5656e5 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT Files, Out;
+IMPORT CPStrings, Out;
VAR
- f : Files.File;
- r : Files.Rider;
- i, len : LONGINT;
- g : SHORTINT;
- x : POINTER TO ARRAY OF CHAR;
+ s : ARRAY 80 OF CHAR;
BEGIN
- f := Files.Old("Test.obn");
- ASSERT(f # NIL);
- Files.Set(r, f, 0);
- len := Files.Length(f);
- NEW(x, len + 1);
- FOR i := 0 TO len - 1 DO Files.Read(r, g); x[i] := CHR(g) END;
- Out.String(x^); Out.Ln;
+ CPStrings.IntToString(123456789, s);
+ Out.String(s); Out.Ln;
+ CPStrings.RealToString(321.123456, s);
+ Out.String(s); Out.Ln;
END Test.