创建一个程序,允许您读取自定义文件扩展名 [英] Create a program that allows you to read a custom file extension

查看:68
本文介绍了创建一个程序,允许您读取自定义文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个朋友正在使用C#开展他们的最终项目。它告诉我它可以通过扩展文件定制编写一个录制和阅读音乐的软件。我的问题是如何用程序读取自定义扩展文件。例如,如果我写一个文本文件,程序将使用.dev扩展名保存它然后它可以读取它。



我尝试过:



是否有类似的示例项目或源代码?

Hi, I have a friend who is working on their end project with C #. It tells me that it works to code a software of recording and reading of piece of music through a file of extensions customize. My question is how I can read a custom extension file with the program. For example if I write a text file the program will save it with the .dev extension and then it can read it.

What I have tried:

Is there an example project or source code like that?

推荐答案

所有你拥有的要做的是了解文件格式并编写代码来读取该格式。整个网络上有大量不同的序列化和反序列化示例,以及读/写文本以及人们称之为二进制数据文件的内容。
All you have to do is understand the file format and write code to read that format. There's tons of different serialization and deserialization examples all over the web as well as reading/writing text and what people call binary data files.


这篇关于创建一个程序,允许您读取自定义文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆