且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中自定义的文件扩展名?

更新时间:2021-12-22 22:51:49

文件扩展您的格式任意选择,而且只有真正取决于您的应用程序注册一个特定的文件扩展名作为某种类型的Windows中的文件,安装时。

File extensions are an arbitrary choice for your formats, and it's only really dependent on your application registering a certain file extension as a file of a certain type in Windows, upon installation.

未来与自己的文件格式,通常意味着你使用,只有你的应用程序可以分析的格式保存格式。它可以是纯文本或二进制,它甚至可以使用XML或任何格式的,关键是你的应用程序应该能够很容易地解析它。

Coming up with your own file format usually means you save that format using a format that only your application can parse. It can either be in plain text or binary, and it can even use XML or whatever format, the point is your app should be able to parse it easily.