How Can I Create My Own File Extension That Self-Deletes?

0
4
Asked By CuriousCoder92 On

Hi everyone! I'm new to programming, with some experience in JavaScript, C#, and Python. I'm curious about whether I can create my own file extension, something similar to PNG, but I want it to automatically delete itself after a certain period. I'm eager to learn and figure it out on my own. Is this possible? How would I go about doing it? Thanks!

1 Answer

Answered By CodeNinja88 On

Yes, you can definitely create your own file extension! There's no one stopping you from inventing something unique. Just make sure it doesn’t interfere with established formats. As for the file auto-deleting part, that would require a program to check and delete the files after a set time based on their creation date. If you're looking for the file to self-delete automatically without a background program, that's more challenging and may not be feasible without extra work.

CuriousCoder92 -

I was hoping for it to erase on its own, but I’d be okay with the program option too! Any advice on how to set that up?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.