Java I/O stream program to copy data from one file to other

Program:-

Output:-








It run normally if hello.txt present in current directory but if it is not there then it will throw exception.

Comments