B
Bonzol
Hello!, I'm just trying to write my string to a simple binary file so
it can't be read in a text document,, however it doesn't work.. I do
this
FileStream fs = File.Create(Server.MapPath("secret.txt"));
BinaryWriter bw = new BinaryWriter(fs);
bw.Write("You should not be able to read me");
bw.Close();
fs.Close();
It writes to it and all fine, but when I open the text file I can read
it fine. However, integers are displayed as gibberish. so its half
working.
Any help?
Thanks in advance.
it can't be read in a text document,, however it doesn't work.. I do
this
FileStream fs = File.Create(Server.MapPath("secret.txt"));
BinaryWriter bw = new BinaryWriter(fs);
bw.Write("You should not be able to read me");
bw.Close();
fs.Close();
It writes to it and all fine, but when I open the text file I can read
it fine. However, integers are displayed as gibberish. so its half
working.
Any help?
Thanks in advance.