ok i am just starting to learn about file reading/writing. Of all the tutorials i have read none tell you how to input data into an array.

say you have a file with the following data in it

xxxxx
xxxxx
xxxxx

and you want to put that into an array map[x][y]
so
Code:
map[0][] = xxxxx
map[1][] = xxxxx
map[2][] = xxxxx
would it be
Code:
while(!file.eof())
{
     file >> map[x][y];
     x++ ; y++;
}
(i know that f.eof() is not supposed to be used but i havent found anything else to use(i havent got to reading the FAQ's yet but i know its in there))

thx