C
C#2y ago
MayoWAA!

File Packages ?

So I was doing some research because I wanted to make a file extension like .docx which is basically an archive with information for the app to read and write to but there's little to no documentation on how to do this or maybe I'm not searching it up right. All I've found was this https://www.pluralsight.com/guides/creating-file-packages-in-c and the code has some errors in it, can anyone help ?
C# Tutorial: How to Create File Packages | Pluralsight | Pluralsight
In this C Sharp tutorial, you'll learn everything you need to know about creating file packages in C#. Learn C# write to file, read file and delete file.
1 Reply
Chiyoko_S
Chiyoko_S2y ago
"file extension" means nothing on its own it's merely part of the file name that hints programs what kind of data might be inside of it and how you could handle the data inside what really matters is the format / structure of such file format which there is no single answer for that because it all just decisions based on what you intend to store in it you could just store it as json internally and call it .myamazingextension or like, store 100 integers as 32-bit integers in binary as an array and call it .numbers or have a super complicated data structure that stores lots of metadata and stores data in blocks and allow you to append or remove any block you just don't magically come up with your own, just because you want to come up with one you need to have a list of requirements, like what needs to be stored in the file then you go ahead in designing a storage format for your data based on what you need to store