Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于我需要处理的项目,我需要能够从 .lda 文件(激光数据文件)中读取指令。这是一种二进制文件,所以只要我使用正确的文本编辑器,我就可以看到十六进制的内容,但是让 Java 读取它被证明是很棘手的。话虽如此,我以前从未使用过二进制文件。
文件中的每一行都是这种格式:0000 0000 0000 0000 0000 0000 0000 0000 是十六进制。
我需要能够一次读取每组 4 位数字。
有任何想法吗?谢谢。