Skip to content

Home

Introduction

Development

IDEs

Services

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

examples package: Using flat file descriptors

Gloop allows developers to read and write flat files using flat file descriptors. The examples package demonstrates this ability via the Employees.ffd service, which can be found under the flatfile package.

Flat file descriptor

Related articles

Please see the following articles for more information:

Try it!

Under the Navigator, expand the examples package and navigate to the code folder. Afterwards, look for the flatfile package. This package contains models, flat file descriptors, and Gloop services, shown below:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
examples
├── ...
└── code
    └── ...
    └── flatfile
         ├── ffd
            └── Employees.ffd
         ├── model
            └── Employees.model
         ├── util
            └── OpenEmployeesCursor.gloop
         ├── ReadFile.gloop
         └── WriteFile.gloop

Simply open up these files and run the services to see how they work together in order to read and write flat files. Line comments are provided for step-by-step explanations.

Use Martini's content assist to code faster️

Gloop steps for reading or writing flat files can easily be generated via Martini's content-assist feature. To do so:

  1. Trigger Martini's content assist feature and search for your flat file descriptor.

    Selecting a flat file descriptor from content assist menu

  2. Choose Read or Write, depending on which operation is to be performed. After this action, the steps for reading or writing flat files will be generated.

    Selecting a flat file read or write operation from the content assist menu

  3. All you have to do now is map the data to be read or written.

    Flat file read steps