need some help with reading and writing to files

cpulocksmith's Avatar, Join Date: Jul 2008
Skilled contributor
ok well i know that you can read and write to a file with fstream. but i have no idea how. if someone could please fill me in i would love them for a long time ^^. it would help if you please provided an example.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Check out Creating a Directory and read/write to file in Directory in c++
0
cpulocksmith's Avatar, Join Date: Jul 2008
Skilled contributor
i have read the artical and i have tried the program... and i still fail... i get like a page of errors.... "ofstream not declared".... so i did not #include <something> but i did all that he said.... mmmmm please help i think my brain is bleeding... damn codes...
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
http://letmegooglethatforyou.com/?q=fstream

First link.