DataFlex index
File type: Various data file
A .k4 file is an index file used by DataFlex, a 4GL, object-oriented database programming language. It stores index information used to locate and organize records in a DataFlex data file.
File type category:
Various data file
Date updated: November 15, 2026
Record marked as obsolete and not updated for a long time.
The .k4 file is one of the DataFlex K-series index files. This family uses extensions from K1 through K15, with a one- or two-digit number after the K. DataFlex is a 4GL database development environment, and the index file supports access to records in its data files.
In DataFlex 2.x, the K10 index was always a batch index: changes to the data file did not update it automatically. Batch indexes had to be created or rebuilt with dfindex or dfsort, depending on the DataFlex version. Most of the advantages of batch indexes have become obsolete as computers have become faster and hard drives larger.
Depending on the backup medium, reindexing a data file may be faster than restoring it from backup. This format is marked obsolete.
A .k4 file is not meant to be opened directly as a document. Use the associated DataFlex application on Linux or Unix to work with the data and its indexes; DataFlex manages the index alongside the data file.
A .k4 index has no useful standalone conversion. To refresh it, rebuild it from the associated data file using the appropriate DataFlex index utility for your version.