Write / read an array in a file

Hi again,

My problem is:

I have a cinema room that is an array like this: int cinemaRoom[19][27] which will include the provision of the room (seats, queues, sales of seats and corridors). So i want to create a file to write all this information and then search for it and maybe sometimes will pick for example an specific seat to change it to sold.

What is the best way to write it on a file and the best way to search it in the file and replace for other value?

Thanks,

Daniel Gomes
Comma Separated Values file would be the best format to store it in IMO.
Thanks for reply Zaita, i forget to tell i am programing it with C and it's a project for university.
What do you mean with IMO?

Thanks,

Daniel Gomes
IMO = In my opinion
can you use a struct ....

if than it will be easy for you to store that in a file .....
Topic archived. No new replies allowed.