943,718 Members | Top Members by Rank

Ad:
Apr 24th, 2006
-1

Convert binary into text/text into binary

Expand Post »
Hey all,

Would anyone be able to help me out with some code to convert text into binary / binary into text?

Your help would be much appriated.

Katrix36
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Katrix36 is offline Offline
16 posts
since Jan 2006
May 12th, 2006
0

Re: Convert binary into text/text into binary

It might seem strange to you, but text files are binary, too. It's the application that treats them differently. For example, if you change the extension from .txt to .bin, the application will not handle it the same.

If you are more precise in what you want to do, we might be able to help you better.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
nvanevski is offline Offline
12 posts
since Dec 2004
May 13th, 2006
0

Re: Convert binary into text/text into binary

Quote originally posted by nvanevski ...
It might seem strange to you, but text files are binary, too. It's the application that treats them differently. For example, if you change the extension from .txt to .bin, the application will not handle it the same.

If you are more precise in what you want to do, we might be able to help you better.
To be more precise, I'm wanting a program that I can type some text into a textbox or memo, and then it displays that text in binary in another textbox/memo.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Katrix36 is offline Offline
16 posts
since Jan 2006
May 13th, 2006
0

Re: Convert binary into text/text into binary

That should be pretty straightforward. On a click of a button, take the Text property into a String variable, then with one "for" loop walk the string, take every character, get the integer presentation using the Asc function, and display it in the other memo.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
nvanevski is offline Offline
12 posts
since Dec 2004
May 13th, 2006
0

Re: Convert binary into text/text into binary

thank you for youe help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Katrix36 is offline Offline
16 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Fatal: Unexpected end of file
Next Thread in Pascal and Delphi Forum Timeline: sscanf procedures





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC