You are on page 1of 1

#include<unistd.

h>

#include<fcntl.h>

#include<sys/types.h>

#include<sys/stat.h>

int main()

int n,f;

char B[100];

n=read(0,B,100);

write(1,B,10);

f=open("tfile",O_CREAT|O_RDWR,0777);

write(f,B,20);

read(f,B,20);

write(1,B,20);

You might also like