Binary File



How can I write data in a text file and user not be able to read them
in a text editor ? By creating a binary file ?

I tried to open a file as below but when I try to open it in Notepad I
am able to see the ASCII characters. What is the solution ?

Dim var_value as string
Open "file" For Binary Access As #1

Put #1,,var_value

thanks a lot in advance!

.



Relevant Pages

  • Re: How to make a binary file in masm - no linker required
    ... > WIN2K and up. ... > Just use a text editor, save it and double click on the file. ... > The batch file will call ml.exe to assemble your code to coff format. ... > No linking is required and the result is a simple binary file for boot ...
    (alt.lang.asm)
  • Re: Help me with this!!!
    ... It works perfecly on a txt file but if I open a binary file (.exe,.bin ... This pattern IS in the file (I made it and I double check with an hex ... the file in notepad (or other text editor)? ...
    (comp.lang.python)
  • Re: Arbitrary Streamwriter.
    ... > be your favorite tool to display all the bytes? ... Either dump or frhed (a binary file ... editor). ...
    (microsoft.public.dotnet.framework)
  • Re: about fwrite( )
    ... > using notepad or other text editor, so i suppose it is ASCII, but I want to ... > generate binary file. ...
    (comp.lang.c)
  • Re: about fwrite( )
    ... > using notepad or other text editor, so i suppose it is ASCII, but I want to ... > generate binary file. ...
    (alt.comp.lang.learn.c-cpp)