Bullet Modders
Become a member of our community

Go down
Big Evil
Big Evil
Posts : 17
Reputation : 0
Join date : 2019-05-01
Age : 21
Location : Paraná,Brazil

For Loop short tutorial Empty For Loop short tutorial

on Wed May 01, 2019 6:40 pm
In c# we need for loop to read binary,to make exporter tools we need know : the number of files inside,the offset and and the size so we need read 8 bytes.
so we need calculate the number of files in * the number of bytes to read in this example is 8
so we need put the first offset position thats maybe located at the head of the file.

for (int i = FirstOffset Position;i <the calculation;i++){

i ++  - will loop with no limitation until the max lenght
i+= 5(for example) will loop 5 times

but if you want a single value  just need to put the byte position

for (int i = 4; i <= 4; i++)


now we can put some BinaryReader to get the values to start working
Back to top
Permissions in this forum:
You cannot reply to topics in this forum