Reading from file line by line

First of all I need to know how to read from file.
Second, I need to read line by line from the file.
For example, the file contains:

8H 3S TH 9D 5S
5D KD 9H 4D 3D
8C TD 5D QS 2C

I wanna use array, so I need to store 8H in array[0], 3S in array[1], until 5S get stored in array[4].

I need to read the first line, the the second, and then the third.

Thank you :)
closed account (jwkNwA7f)
http://www.cplusplus.com/doc/tutorial/files/

Hope this helped!
Yes! Thank you!!
closed account (jwkNwA7f)
No problem.
Topic archived. No new replies allowed.