writing to binary file

Hello,
i'm trying to write to file in binary mode and here is the code
int main()
{
ofstream fout("b.bin",ios::binary | ios::out);
fout.write("Hello world",1000);
system("PAUSE");
return 0;
}
the file is created but when i open the file in notepad i see normal text(Hello world) shouldn't be binary numbers instead i'm a bit confused about this please help
thanks
Topic archived. No new replies allowed.