File system routines
These functions are declared in the main Allegro header file:
#include <allegro5/allegro.h>
These functions allow access to the filesystem. This can either be the real filesystem like your harddrive, or a virtual filesystem like a .zip archive (or whatever else you or an addon makes it do).
- ALLEGRO_FS_ENTRY
- ALLEGRO_FILE_MODE
- al_create_fs_entry
- al_destroy_fs_entry
- al_get_fs_entry_name
- al_update_fs_entry
- al_get_fs_entry_mode
- al_get_fs_entry_atime
- al_get_fs_entry_ctime
- al_get_fs_entry_mtime
- al_get_fs_entry_size
- al_fs_entry_exists
- al_remove_fs_entry
- al_filename_exists
- al_remove_filename
Directory functions
Alternative filesystem functions
By default, Allegro uses platform specific filesystem functions for things like directory access. However if for example the files of your game are not in the local filesystem but inside some file archive, you can provide your own set of functions (or use an addon which does this for you, for example our physfs addon allows access to the most common archive formats).