SD to array

How do i place data from the SD card into an array?
I have searched for some examples but i just cant get the hang of it.
the format on the SD card looks like this:

321654987
456989787
546565456
56565489

The numbers represents ID's and this list can be extented when more ID's are added

I also want to compare an incomming ID with the ID's in the array. If the incomming ID Is equal to a id in the array

I hope somebody can explain how to do this with an example.
Thanks!

How do i place data from the SD card into an array?

Just like you type - one character at a time.

I have searched for some examples but i just cant get the hang of it.

Seems a shame.

The numbers represents ID's and this list can be extented when more ID's are added

Numbers? Where is your code to prove that?

I found my error already it was a wrong datatype for my array I have changed the datatype to unsigned long because the data is longer then 32,767
the code for writing to the array now works like a charm

PaulS:
Just like you type - one character at a time.

That is not always true. If you already know the you should be receiving/reading n bytes do a function call that reads n bytes if available.