/*In this program i will explain how output could be displayed into another file instead of command line*/
#include"header.h"//"" represent that it 1st find this header file in current directory & then go to search in standard path
int main()
{
int dis,fd,wfd,count;
char buff2[9];
close(1);//close the file descripter where stdout file is opened ..bcz through stdout stream ..output will goto
//command line ...so closing fd=1 ..output will not go to command line instead of it..output will goto file opened on same fd...means exactly next file opened after closing this fd=1
dis=open("display",O_RDWR|O_CREAT);//creates dest....output will goto this file whose name is also display