Hi.
Ok - I'm a VB6 programmer from way back and I am starting to use C# for a particular project. To add spice to the issue this is the MicroFramework because the end application will be running on a FEZ Mini.
Now - I have seen many articles where one can write a fixed length record file from VB6 and read it in with C#. But for this project it is not going to be a sequential read, I will need to jump from record to record. Fortunately I will only be reading the file.
If I look at the disk file as an array of structures each 14 bytes long then I should beable to jump forward and back to the appropriate record. But in C# array's start at position 0.
Would I be correct in assuming that the byte pointer for the file also starts at 0, or doe it start at 1.
Knowing this I can then write the code to jump forward or back through the file knoing that I will always arrive at the start of a 'record'
Many thanks
Dave
Ok - I'm a VB6 programmer from way back and I am starting to use C# for a particular project. To add spice to the issue this is the MicroFramework because the end application will be running on a FEZ Mini.
Now - I have seen many articles where one can write a fixed length record file from VB6 and read it in with C#. But for this project it is not going to be a sequential read, I will need to jump from record to record. Fortunately I will only be reading the file.
If I look at the disk file as an array of structures each 14 bytes long then I should beable to jump forward and back to the appropriate record. But in C# array's start at position 0.
Would I be correct in assuming that the byte pointer for the file also starts at 0, or doe it start at 1.
Knowing this I can then write the code to jump forward or back through the file knoing that I will always arrive at the start of a 'record'
Many thanks
Dave
Comment