Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a .bin file? 1

Status
Not open for further replies.

VBprogrammeur

Programmer
Aug 17, 2001
2
CA
How do I create a ".bin" file? Could not find anything in the Help section.

Thanks in advance.
 
Any file can be a binary file (*.bin). Files only differ in their content and the way they are opened.

One could open a text file as binary...
[tt]
ff = FreeFile
Open "c:\MyFile.txt" for Binary as #ff
[/tt]
...place the contents in a string, manipulate it and write it back to the correct location in the file. But...
[tt]
Open "c:\windows\explore.exe" for Output as #ff
[/tt]
...does not lend itself to writing the (binary) file correctly.

What do you plan to save to your BIN file? How do you plan to use the data in the future?
VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top