需要幻数或(十六进制签名)此扩展名 [英] need magic Number or (Hex Signature) this extension

查看:106
本文介绍了需要幻数或(十六进制签名)此扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要上面扩展的幻数(Hex Signature)



.ACCDT

.ABR

。 BAK

.CFM

.CSS

.CSV

.DOTM

。 DXF

.JS

.MPT

.PPSX

.PXC

。 XSL

.XSLT我想要扩展上面的幻数

want the magic number (Hex Signature)above extension

.ACCDT
.ABR
.BAK
.CFM
.CSS
.CSV
.DOTM
.DXF
.JS
.MPT
.PPSX
.PXC
.XSL
.XSLT i want the magic number above extension

推荐答案

究竟是什么让你认为你可以查看数据并自动识别它从前几个字节作为特定的文件类型:没有十六进制签名将唯一标识文件类型 - 这就是我们有扩展名的原因。如果我们有一个十六进制签名,我们就不需要扩展名......



例如:.BAK用于很多系统的工作原始数据的副本,因此理论上它可以包含任何类型的文件。 .CSV看起来很像一个正常的文本文件,直到你尝试解析它并发现它有点像垃圾数据一样垃圾。



使用扩展:这就是它的用途!
What on earth makes you assume that you can look at data and automatically identify it from the first couple of bytes as being a particular file type: there is no "hex signature" that will uniquely identify a file type - that's why we have the extension. If we had a hex signature, we wouldn't need the extension...

For example: .BAK is used for a heck of a lot of systems as a copy of the original data, so it could contain any type of file in theory. .CSV will look a lot like a "normal" text file, until you try to parse it and find it's a bit, well, rubbish as CSV data.

Use the extension: that's what it's there for!


Code Project的慷慨人士愿意帮助您解决代码问题,只要您尝试自己解决问题。



自己查一下,一个简单的谷歌搜索找到了这些网站。

文件标识 [ ^ ]

幻数 [ ^ ]



有一篇关于搜索答案的非常有帮助的文章: 如何使用Google和其他提示进行编程帮助 [ ^ ]



至少请阅读:代码项目快速解答常见问题解答 [ ^ ]



对不起,如果我听起来很敏锐,但如果你真的想要学习,你需要学习如何自己寻找答案。简单地要求asnwers只会让那些可以帮助你的人感到不安,你找不到你想要的答案。
The generous people here at Code Project are willing to help you solve your code problems provided you at the very least attempt to solve the problem on your own.

Look them up yourself, a simple Google search found these websites.
File SIgnatures[^]
Magic numbers[^]

There is a very helpful article on searching for answers: How to Use Google and Other Tips for Finding Programming Help[^]

At the very least read this: Code Project Quick Answers FAQ[^]

Sorry if I sound sharp but if you really want learn, you need to learn how to find answers on your own. Simply demanding asnwers will only upset the people who can help you and you will not find the answers you seek.


这篇关于需要幻数或(十六进制签名)此扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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