Well, you could (for the characters that aren't "friendly") just work with the ASCII numbers.
But, as far as actual text (and not numbers) goes, I can't think of anything right now. I'm pretty...
Type: Posts; User: Hillbillie
Well, you could (for the characters that aren't "friendly") just work with the ASCII numbers.
But, as far as actual text (and not numbers) goes, I can't think of anything right now. I'm pretty...
>thnx to all, to confirm, is it really impossible to do it with plain text, instead of hex?<
I wouldn't say it's impossible, but it would be difficult to do. Some of the characters that are in...
You _really_ should figure this out on your own. I don't like giving people that are having problems source code because you don't usually learn that way, but oh well. Here's what you were trying to...
My my, this thread has exploded...
>why is there ffff?<
That is hexadecimal for -1, which is what most standard C libraries use for EOF. It could be fixed easily to not print that out to the...
First a wrote simple program that converts a program into a text file that is hexadecimal with commas. Then I just copied that into an array.
This is the program that converts an executable to...
Okay, here's a sample I whipped up. I hope this is what you were talking about. Sorry I used hex, but it was the easiest for me. If it's too much of a problem, I can fix it. :)
You'll notice (when...
>i dunno how to do hex. And i did open the new file using mode "wb"<
If you can't do hex, just do an array of ASCII characters (decimal form). I don't even know why I said hex in the first place -...
>I tried save the funny character into a text file, read it one character at a time and output it as .exe but output is incorrect.<
Did you open the new file in text or binary mode? Anyway, to...