Reading files using ifstream?

First of all , i want to note I already know how the files work (..at least in PASCAL) . Im trying to read a simple text file, in this format

1
2
3
4
5
6
7
8
9
//Comments..
//Comments...
//comments...
//... 

[1,2,3,4,5]
[1,2,3]
[2,3}
[9,8,6,2,7,2]


In my code, i do
1
2
3
4
   char st[256];
   ifstream fe(route.c_str()); 
   fe >> st;
   while (st[1] == '/')  fe >> st; // Im trying to skip all the "//" parts 


When i do fe >> c-string-object , what am i exactly storing? A char vector that contains all the elements of fe, from the file manager's pointer up to '\n' or its EOF? Am i writing strange symbols at the beginning of st when i do fe >> st? (such as the length of the data im reading, etc, etc..)

More importantly... is there any tutorial you'd recommend me?

Thanks
Thanks a lot, Bazzy, that was the help I needed.
Topic archived. No new replies allowed.