Equivalent C# function for this random access read for this VB6 function? RRS feed

  • Question

  • User-988929402 posted

    I'm having a problem reading a block of bytes into an array from a file read (random access).  Instead, in C#, it seems I can only read byte by byte and not a block of byte.  I want to create a string array that is 500 cells in capacity but each cell is 10 bytes wide.  how do i do this?

    I have  written the function in Vb6 and maybe someone can tell me the fs.Read (code) for the C# equivalent.

    In Vb6, I declared

    Prvate Type WFM

      points(500) as String * 10   // This will create an string array of 500 cells but the KEY here is each cell is 10 bytes wide fixed!

    End type

    Thursday, September 16, 2010 8:43 PM