File Reading?

Started by
36 comments, last by Esap1 24 years, 2 months ago
If a binary file(like an exe file) was opened and save in a Word Proccesor, can it be converted back to binary(so, if it was an exe it could run), if so, how?, thanks alot(and this does have 2 do with game programming, Ill tell u later how)
Advertisement
Well, I''m not completely sure, but if you open an exe in a editor, or something like word it may put in carriage returns and line feeds. Those would screw up the file for sure.

The best way to open and exe and edit it or whatever you want to do to it, is to use a hex editor.
Play free Java games at: www.infinitepixels.com
I did it in Notepad with no Formating so I just need to convert it back somehow, im not 2 clear on da concept, any programs or ways would be greatly apreciated
No you can''t. The word processor would convert the binary information into ascii code..etc. when you save the file it would be in word format. If you try running the program it would say invalid exe or even crash you system (not sure on that).

What you are wanting is a Hex Editor. You can get one just about anywhere.. try ftp.cdrom.com.
William Reiach - Human Extrodinaire

Marlene and Me


+ you will not be able to convert it back into a binary executable.
William Reiach - Human Extrodinaire

Marlene and Me


U cant even though it added absolutly no formating what so ever?
quote:
U cant even though it added absolutly no formating what so ever?

It''s theoretically possible--if you have the source code to your word processor and you know exactly how it mangles everything. Then you would have to write a program that would unmangle everything. This would take an incredible amount of work. What would be the point?

If you think you can open executables in a word processor and change values, thereby changing the executables, then you''re really out of your depth here. As the other responders have said, hex editors can do this to a limitted degree. Why don''t you follow their advice and look at one?
Or, if you''re trying to look at the code, you need a disassembler. That''ll convert the Hex into assembly. Some compilers will do this for you.

E:cb woof!
E:cb woof!
There is no way to convert it back (as i know)

The best thing you should do is to delete the file, it could prenvent troubles, reinstall the file (from a back up of the complete reinstall)

And don''t do this again!
We all make stupids mistakes...but were not stupid if we don''t do them again ;-)

Delisk
This always happens when some one posts something, its kinda like the game telephone(it jus keeps changin), Im not that stupid, I dont think(read my other posts)(maybe I am), well, I know how to use a Hex editor to change values in binary files, I got a few Hex editors(tryin find easist one) but I really dont want to edit values in a binary file, What happened was the only way I could copy this .exe file was to open it in notepad, then save it 2 another spot(dont ask, security ting)I told it 2 save it as an MSDOS TEXT FILE, With no Line feeds, So Im assuming it added nothing, as it looks exactly the same as it did before, exept, I cant run it, cause now it sumtin else, NOW, is there any way to be able to run this file, by converting it back????????

This topic is closed to new replies.

Advertisement