fr/c/file: Added get_extension method