the use of fstream

I wanna know what is the differences between ofstream and ifstream and
when i must use them ????
and

how can i use them (Every thing please with parameters )
ex

i wanna know all parameters of ofstream

ex2
ofstream file("test.txt",ios::app);



i know this

ios::app

used for add data to file without erase the existing data....

but i do not know the the use of other parameters like ios::in

ios::in

when can i use that parameter????



please help.......

Thankssssssssss i am so grateful.....
Topic archived. No new replies allowed.