# Checking file name for extension You can use `ends_with`: ``` #include ... if (boost::algorithm::ends_with(filename, ".ext")) { ... } ```