VB: Reading random files from VB6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marathoner
    New Member
    • Dec 2007
    • 1

    #1

    VB: Reading random files from VB6

    My existing VB6 programs make extensive use of random files, read from and written to using complex structures. For example...
    [code=vb]
    Private Type RightsElement
    ItemName As String * 10
    ItemFolder As String * 32
    RightsFlag As Integer
    End Type

    Private Type OneUser
    UserName As String * 20
    Password As String * 20
    AllRights (0 to 64) As RightsElement
    End Type
    [/code]
    I could then declare a variable such as ThisUsersRights As OneUser, and subsequently read from or write to a random file using this variable.

    I have tried in vain to make this work in VB.Net 2008. I NEED to be able to read my existing files. Can anyone offer any suggestions? Or perhaps point me in the right direction for getting an answer?

    Thank you.
    Steve
    Last edited by Frinavale; Dec 20 '07, 05:01 PM. Reason: Added [code] tags
Working...