> the code u have given i tested that, and that is creating a output
> file indeed but that is not readable....is that a binary file???
Yes, you can call the file binary. The file contains the 12, 7, 8, 8, 4
but on 4 bytes, that's why you cannot read them. Have a look at the hex
values and you will see the numbers there.