Answer to Question #44674 in C++ for sud
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..
0
Answer in progress...
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment