Use of file headers

 #include <iostream>

#include <fstream>
using namespace std;

int main()
{
fstream fout;
fout.open("test.txt", ios::out);
fout<<"Hello Coders";

fout.seekp(6, ios::beg);
fout<<"World";
fout.close();

Comments

Popular posts from this blog

Use of function in mathematics

My resume using HTML and CSS