trying to remove hidden file from .cpp program