Coder Social home page Coder Social logo

txt2bin's Introduction

txt2bin

这是一个根据编译原理步骤实现的数据文本转二进制的工具

Install

gcc txt2bin.c -o txt2bin

Usage

txt2bin -i input_file -o output_file -[hlb] 
-h 按照本地大小端格式存储二进制文件
-l 小端格式存储二进制文件
-b 大端格式存储二进制文件
    默认本地格式存储

example

./txt2bin -i dat.txt -o dat.bin
./txt2bin -i dat.txt -o dat.bin -h
./txt2bin -i dat.txt -o dat.bin -l
./txt2bin -i dat.txt -o dat.bin -b

格式要求

1. 每个数据以逗号或空格分割,支持无符号32bit数据
2. 16进制数据需要以0x开头

转化不通过会有提示

txt2bin's People

Contributors

qianlihu8906 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.