Built-in methods that can be used for opening, closing, reading, writing and sorting Extract files are listed in the following table.
Built-in Method | Function |
---|---|
<glbfile>.open() Method | Opens an Extract file. When used in read mode, the <glbfile>.Open() method opens the file for input. It treats the extract file as existing, so GLB.STATUS is set to ***** if the file does not exist. When used in write mode, the <glbfile>.Open() method opens the file for output. In this mode, an existing file is overwritten. When used in append mode, the <glbfile>.Open() method opens the file for IO. In this mode, records are appended to an existing file. |
<glbfile>.close() Method | Closes an Extract file. |
<glbfile>.position() Method | Positions the file record pointer to the record number specified in the parameter. |
<glbfile>.read() Method | Reads a record from an Extract file (using the extended format). |
<glbfile>.write() | Writes to an Extract file (using the extended format). |
<glbfile>.Sort() Method | Sorts an Extract file. |
<glbfile>.name := <filename> | Assigns a title to the Extract file name attribute. This has the same function as SetTitle. |