77 952
Assignments Done
98,4%
Successfully Done
In August 2019

Answer to Question #44674 in C++ for sud

Question #44674
hey !

the snippet is not inserting char x at beginning of the file but at end ..tellp is though showing correct position.. any clue!


fstream objout(filepath,ios::out|ios::ate);
objout.seekp(0);
objout.put('x');
long l= objout.tellp();
cout<<"\n"<<l;
objout.close();

Thnks geeks..
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions