Why binay data writing's result is string?
<p>I want to create a binary file and store string data in it, I used this sample:</p>

<pre><code>FileStream fs = new FileStream("c:\\test.data", FileMode.Create);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(Encoding.ASCII.GetBytes("david stein"));
bw.Close();
</code></pre>

<p>but when I opened created file by this sample (test.data) in notepad, it has string data in it ("david stein"), now my question is that whats the difference between this binary writing and text writing when the result is string?</p>

<p>I'm looking to create a data in binary file until user can not open and read my data by note pad and if user open it in notepad see real binary data .</p>

<p>in some files when you open theme in text editors you can not read file content like jpg  files contents,they do not use any encryption methods,what about it?how can i wite my data like this?</p>
