Results 1 to 1 of 1

Thread: Bin2Asc Asc2Bin

  1. #1

    Thread Starter
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Wales UK

    Post Bin2Asc Asc2Bin

    Here are two C++ files that allow you to convert between decimal value data and binary.
    Bin2Asc will convert a file into decinal data.

    For example if we had a file with say "Hello World" in it
    Your output file will look something like this.

    File Contents
    Asc2Bin then can take this file and convert it back into it's original
    I tried this on exe files and worked fine. Handy if you say wanted to post binary files onto a forum, that people can then convert back.

    Once compiled the two c++ files. You just need to use

    bin2asc.exe sample.txt output.asc

    To convert back if just almost the same you just flip the file names.

    asc2bin.exe sample.asc output.txt

    Hope you find them us full, comments welcome.
    Attached Files Attached Files
    Last edited by BenJones; Apr 15th, 2015 at 03:52 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width