Write / read an array in a file

Jan 7, 2009 at 11:03pm
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
Jan 8, 2009 at 12:35am
Comma Separated Values file would be the best format to store it in IMO.
Jan 8, 2009 at 1:22am
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
Jan 8, 2009 at 1:22am
IMO = In my opinion
Jan 8, 2009 at 7:41pm
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.