---
name: "DATAFILE"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/DATAFILE"
---

# DATAFILE(3alleg)

Stores an Allegro datafile in memory.

## NAME

DATAFILE - Stores an Allegro datafile in memory.

## SYNOPSIS

**#include \<allegro.h\>**

**typedef struct DATAFILE**

## DESCRIPTION

```
   void *dat;     - pointer to the actual data
   int type;      - type of the data
   long size;     - size of the data in bytes
   void *prop;    - list of object properties
```

Read chapter "Datafile routines", section "Using datafiles" for a description on how to obtain/use this structure.

## SEE ALSO

[**load\_datafile**(3alleg)](/load_datafile/3alleg.md), [**excustom**(3alleg)](/excustom/3alleg.md), [**exdata**(3alleg)](/exdata/3alleg.md), [**exexedat**(3alleg)](/exexedat/3alleg.md), [**exgui**(3alleg)](/exgui/3alleg.md), [**exsprite**(3alleg)](/exsprite/3alleg.md), [**exunicod**(3alleg)](/exunicod/3alleg.md)
