Note: (Restricted functionality due to obvious reasons!)

For Mobile-Ease ⇓

Minimal Code ( Raw-View ) :
#include<iostream.h> #include<conio.h> #include<fstream.h> void main() { fstream fl; // creating object of "fstream" int i=20125; char c='m'; fl.open("sss.txt",'w'); // open file to write fl<<"Student Id : "<<i<<"\n"; fl<<" Code : "<<c<<"\n"; // write a character to FILE fl.close(); // close file-handle getch(); }