Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Using the Flat File Descriptor

Introduction

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 Coder Navigator, expand the examples package entry 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
examples
├── ...
└── code
    └── ...
    └── flatfile
         ├── Employees.ffd
         ├── Employees.model
         ├── 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 Coder's content assist to code faster️

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

  1. Trigger Coder's content assist feature and search and select the 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