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
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