6 File
* = POINTER TO Handle
;
15 PROCEDURE Old
*(name
: ARRAY OF CHAR) : File
;
16 BEGIN RETURN NIL END Old
;
18 PROCEDURE New
*(name
: ARRAY OF CHAR) : File
;
19 BEGIN RETURN NIL END New
;
21 PROCEDURE Register
*(f
: File
);
24 PROCEDURE Close
*(f
: File
);
27 PROCEDURE Purge
*(f
: File
);
30 PROCEDURE Delete
*(name
: ARRAY OF CHAR; VAR res
: INTEGER);
33 PROCEDURE Rename
*(old
, new
: ARRAY OF CHAR; VAR res
: INTEGER);
36 PROCEDURE Length
*(f
: File
) : LONGINT;
37 BEGIN RETURN 0 END Length
;
39 PROCEDURE GetDate
*(f
: File
; VAR t
, d
: LONGINT);
42 PROCEDURE Set
*(VAR r
: Rider
; f
: File
; pos
: LONGINT);
45 PROCEDURE Pos
*(VAR r
: Rider
) : LONGINT;
46 BEGIN RETURN 0 END Pos
;
48 PROCEDURE Base
*(VAR r
: Rider
) : File
;
49 BEGIN RETURN NIL END Base
;
51 PROCEDURE Read
*(VAR r
: Rider
; VAR x
: SYSTEM
.BYTE);
54 PROCEDURE ReadInt
*(VAR R
: Rider
; VAR x
: INTEGER);
57 PROCEDURE ReadLInt
*(VAR R
: Rider
; VAR x
: LONGINT);
60 PROCEDURE ReadReal
*(VAR R
: Rider
; VAR x
: REAL);
63 PROCEDURE ReadLReal
*(VAR R
: Rider
; VAR x
: LONGREAL);
66 PROCEDURE ReadNum
*(VAR R
: Rider
; VAR x
: LONGINT);
69 PROCEDURE ReadString
*(VAR R
: Rider
; VAR x
: ARRAY OF CHAR);
72 PROCEDURE ReadSet
*(VAR R
: Rider
; VAR x
: SET);
75 PROCEDURE ReadBool
*(VAR R
: Rider
; VAR x
: BOOLEAN);
78 PROCEDURE ReadBytes
*(VAR r
: Rider
; VAR x
: ARRAY OF SYSTEM
.BYTE; n
: LONGINT);
81 PROCEDURE Write
*(VAR r
: Rider
; x
: SYSTEM
.BYTE);
84 PROCEDURE WriteInt
*(VAR R
: Rider
; x
: INTEGER);
87 PROCEDURE WriteLInt
*(VAR R
: Rider
; x
: LONGINT);
90 PROCEDURE WriteReal
*(VAR R
: Rider
; x
: REAL);
93 PROCEDURE WriteLReal
*(VAR R
: Rider
; x
: LONGREAL);
96 PROCEDURE WriteNum
*(VAR R
: Rider
; x
: LONGINT);
99 PROCEDURE WriteString
*(VAR R
: Rider
; x
: ARRAY OF CHAR);
102 PROCEDURE WriteSet
*(VAR R
: Rider
; x
: SET);
105 PROCEDURE WriteBool
*(VAR R
: Rider
; x
: BOOLEAN);
108 PROCEDURE WriteBytes
*(VAR r
: Rider
; VAR x
: ARRAY OF SYSTEM
.BYTE; n
: LONGINT);