writing to binary file?

PG74

New member
Joined
Aug 4, 2004
Messages
2
hello!
I dont know the syntax for writing to a binary file. In the exampel below the value of i is writen as an integer to the file in the byte possitions 0 to 10(I think =)). what is the syntax if I want to write to a specific possition in the file? If I for example want to write the value 5 to the 3:rd byte of the file?

for i = 0 to 10
w.write(Cint(i))
next

now to the next question:
I have an array filled with 16bits data. how do I write the data to a binary file where each possition is 8bits.

thanks!
//PG
 

Similar threads

E
Replies
0
Views
242
Eldeeb92
E
E
Replies
0
Views
278
Eldeeb92
E
D
Replies
0
Views
118
Dolphine82340
D
Back
Top