Link to home
Start Free TrialLog in
Avatar of SaltyDawg
SaltyDawgFlag for United States of America

asked on

Create Struct then write to Random Access File

I need to create a random access file. What I am trying to do is query a MySQL database then return the results then write them into a file to be read from later. I think I should create structs then write the data to the file. Then read the file and write them back to the structs. However I am not sure how to start. I can query the database but everything else I have little knowledge.

If someone can help me with some example code to start me off Id appreciate it. I would specifically like help that sends my Query Results into a struct then send the struct into random access file then read from the random access file back to the struct. I;m not even sure how to create a Random Access file in C#. Any help to start would be appreciated. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of margajet24
margajet24
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SaltyDawg

ASKER

I'm not too familiar with Serialization. Will I be able to get the same results as I would with a Random Access File? Could you point me to a place where I can find a good example? I looked it up but found some terrible tutorials online. Thanks