Open + Save .exe file in notepad makes it corrupted

Posted by Jacob Kofoed on Stack Overflow See other posts from Stack Overflow or by Jacob Kofoed
Published on 2010-12-27T22:38:47Z Indexed on 2010/12/27 22:54 UTC
Read the original article Hit count: 207

Filed under:
|
|

Hi, I just published this simple console application that is supposed to show a textbox with the value of a setting called "userID" with value 1001. This works like a charm. Now what I need is to change this value outside the editor, from notepad etc.

When I open the application a lot in there is non-sence (& o! -å Þþþ,o" Ü+) etc. but with a quick (ctrl + F) I found the value 1001, and changed this to some other integer. I ran the application again, and it failed, didn't even give any userful error-message. At a point I tried just opening a newly published non-corrupted version of the application, didn't change anything, then saved from notepad, and it were also corrupted. It seems like notepad can't open some characters or something. Do I need to publish the application in some specific text-unicode language or something?

Help much appreciated :) I know it sounds like a stupid application, but it is just a test of concept :)

I use vb.net for this

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about exe