need some help with reading and writing to files

Skilled contributor
15Jan2009,08:03   #1
cpulocksmith's Avatar
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.
Go4Expert Founder
15Jan2009,08:58   #2
shabbir's Avatar
Check out Creating a Directory and read/write to file in Directory in c++
Skilled contributor
15Jan2009,11:08   #3
cpulocksmith's Avatar
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...
Mentor
15Jan2009,11:43   #4
xpi0t0s's Avatar
http://letmegooglethatforyou.com/?q=fstream

First link.