X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=Test.obn;h=0f09bade1d5103f0fca051137c9cc8b9dd5656e5;hp=c80345e560b5ed362e18a58a9a1abc772b084c44;hb=0b724e12457f2507d398c51dc35200d833ce9362;hpb=7b989fe6cfb3cf6e529b888bb6827714c45c62c6 diff --git a/Test.obn b/Test.obn index c80345e..0f09bad 100644 --- a/Test.obn +++ b/Test.obn @@ -1,20 +1,13 @@ 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.