adds fclose files after use, const char*del