Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- fstream xyz("file.txt",fstream::ate|fstream::in|fstream::out);
- xyz.seekp(0,fstream::beg);
- xyz << "this is ";
- xyz.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement