This programme implements cp comand using fopen