Get file extension with build-in function.