saving multiple arrays and reading differently

hi .
im beginner in c++.
i learnt saving array in comma separated in file.
but i want to know how i can enter 500 random arrays in one file
and also read those array. one array should not mix with other array while reading.
Thanks
Last edited on
1
2
3
4
5
//first array
1;21;45;47;14
//second array
35;457;45;15
....
Hi ,
can you please tell me code about it
Thanks
closed account (4z0M4iN6)
shanalikhan wrote:

i learnt saving array in comma separated in file.
but i want to know how i can enter 500 random arrays in one file


I think, if you would save one random array - what you have learned already before - 500 times, you would have 500 random arrays

1
2
3
4
for( int i = 0; i < 500 ; ++i)
{
     SaveOneRandomArray(RandomArray[i]);
}


shanalikhan wrote:

and also read those array.


Yes then you should read one random array, I would suggest, also 500 times

1
2
3
4
for( int i = 0; i < 500 ; ++i)
{
     ReadOneRandomArray(RandomArray[i]);
}


Sorry, I don't know exactly about your parameter, no need to tell me, enough, if you would it know


shanalikhan wrote:

one array should not mix with other array while reading.


Oh, how would you do this?
Topic archived. No new replies allowed.