Get the size of a file by scanning it.

Synopsis

Declared in <util/fs_helpers.h>

std::streampos
GetFileSize(
    char const* path,
    std::streamsize max = std::numeric_limits<std::streamsize>::max());

Return Value

The file size or max

Parameters

Name

Description

path [in]

The file path

max [in]

Stop seeking beyond this limit

Created with MrDocs