A flat file is a type of database that stores data in a plain text format, typically with each line representing a single record and each field separated by a delimiter. Unlike a relational database, a flat file does not contain multiple tables or complex data structures.