rewritten the code by using Unix system calls

*modified file : hello.c