Reference
To link data files to an object, you can take the following steps:
- Open the object that has to be linked to one or more text files.
- Specify the identifier to use for calling the text file.
You can do this by opening the node "Files", selecting "Id's" and clicking the option "Add new file id" that is displayed in the right pane. In the dialog box that is displayed next, specify with which name you want to refer to the file. Because this name is actually just an identifier you can specify any name you want. - Specify the path to locate the physical text file that the object should use when referring to the identifier.
- Create a layout for reading the file.
Layouts can be created by selecting the layouts node and then clicking "add new file layout".
To speed up the search for a record in a file, it is also possible to use file indexes.
To rename or delete a link to a data file you can right click on the id in the left pane and choose the applicable option in the popup-menu.
In the logic of the object, you can use the files that have been linked to it. The easiest way to do this is by writing a construction with the READFILE command. The most flexible way is to request and/ or assign file properties, which are available for every file object. If you use the file function .LOCATE in combination with POSITION, it will be possible to search on a record number in the specified file, which will then be used as a relative IO file. For both index files and relative IO files there are additional functions available for deleting, updating or inserting records.