Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > File handling -...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 9380 of 10094
Post > Topic >>

File handling - difference b/n modes - & namespace

by "Atharvan!!!" <code333@[EMAIL PROTECTED] > Mar 15, 2008 at 02:14 PM

hi,
I need to know something about modes of opening a file.

  before that a small intro.
We are (bachelor students) using age old Turbo cpp version 3.And
syllabus is old enough to not include STL .
and it's common to skip the last chapters(file,pointer,etc).

now I want to what is the difference b/n ios::app and ios::ate
what I understand is ios::app is for appending to a already existing
file without deleting it contents.
and ios::ate is for cleaning the entire file and start adding data.
but recently I read somewhere that ios::ate is for appending to a file
and the difference b/n ios::app is that the first allows moving file
pointers around and later didn't.
What is the correct answer?

If there is an easy way in STL most welcome.Now I obtain some
tutorials about STL and started to chew it.

also if there is any reference to all namespaces .
I am quiet confused with them after reading file:: and std::
namespaces.
anyway we didn't need to use it here or either doesn't sup****t it in
turbo CPP ver3.
But in home I setup a linux box running with gcc and g++ etc.,
installed.
so I am quiet sure I am use them here.

also whether I can know the headers exist here.
I found that conio.h is not in gcc.
I can't use it here.

Thank You.

With love,
Arun.K.R
[
Atharvan!!!
{333}
ChintaaDaara.blogspot.com
ChintaaDaara.blog.co.in
]
{ "The magic words are squeamish and ossifrage." }


--
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 3 Posts in Topic:
File handling - difference b/n modes - & namespace
"Atharvan!!!" &  2008-03-15 14:14:07 
Re: File handling - difference b/n modes - & namespace
red floyd <no.spam@[EM  2008-03-16 01:59:47 
Re: File handling - difference b/n modes - & namespace
Bart van Ingen Schenau &l  2008-03-16 15:41:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 18:27:55 CDT 2008.