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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read binary file, copy data to newly created binary file? 1

Status
Not open for further replies.

thepunisher

Programmer
Jul 23, 2004
108
IE
How do i read in a binary file, copy the data to an array and then send the array data to a new binary file?

I want to create the binary file at run-time if possible.

Any help is greatly appreciated? Especially code.

thanks,

thePunisher.

The Wolf: Thats 30 minutes away. I'll be there in 10.
 
I used input$ function to read binaries. Maybe using it it would help.
Cya
 
Yeah,

i'll try that,

and then i set that to a variable and it will go into an array....no probs, but how to i create a new binary file with the new data?

Have a star!!!

Frank: I can do anything i want, and so can you!
 
mmmmmm...
I did that long ago to segment binary files and join them again....
I dont remember very well, I should try opening file for output and printing each one of the variables to the files and then closing it. I dont know if it will work, I cant remember how I did it time ago :S
 
ok,

cool, just one more question,

how do i check/view the values of the data in the binary file? I dont think there is a way, or is there?

thanks,

thePunisher

Homer Simpson: Im not a religious man, but Superman, if you're up there, save me!!!
 
you can do/loop byte by byte convering the chr$ to hex.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top