FileCache.addOrGetFile

Add or get a file from the file cache. If the file isn't part of the cache, it will be read from the filesystem. If the file has been read before, the cached file object will be returned

struct FileCache
nothrow
addOrGetFile
(
const(char)[] file
)

Parameters

file const(char)[]

file to load in (or get from) the cache

Return Value

a FileAndLines object containing a line-by-line representation of the requested file

Suggestion Box / Bug Report