T
tornado
hi all,
This is quite puzzling me why is that ofstream constructor is unable
to open a file for writing while, a ofstream "open" method can ! The
c++ book by Herbert Schildt which i m readin mentions that ofstream
default constructor can open a file. But when i tried to open a file
it failed to open. Then i tried it by open method which succeded.
I m using g++ on Redhat linux.
Any insights will be appreciated.
Thanks in advance.
This is quite puzzling me why is that ofstream constructor is unable
to open a file for writing while, a ofstream "open" method can ! The
c++ book by Herbert Schildt which i m readin mentions that ofstream
default constructor can open a file. But when i tried to open a file
it failed to open. Then i tried it by open method which succeded.
I m using g++ on Redhat linux.
Any insights will be appreciated.
Thanks in advance.