---
name: "FcDirCacheLoadFile"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcDirCacheLoadFile"
---

# FcDirCacheLoadFile(3)

load a cache file

## NAME

FcDirCacheLoadFile - load a cache file

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcCache \* FcDirCacheLoadFile (const FcChar8 \****cache\_file***, struct stat \****file\_stat***);**

## DESCRIPTION

This function loads a directory cache from *cache\_file*. If *file\_stat* is non-NULL, it will be filled with the results of [stat(2)](/stat/2.md) on the cache file.
