It's probably just the modes again. In binary mode you are supposed to rely exclusively on read() and write(). The other method that Swarvey mentioned works for text mode.
It's probably just the modes again. In binary mode you are supposed to rely exclusively on read() and write(). The other method that Swarvey mentioned works for text mode.
rely on read() and write()?It's probably just the modes again. In binary mode you are supposed to rely exclusively on read() and write(). The other method that Swarvey mentioned works for text mode.
i tried it and the compiler reports error message.
Code:myFile.write(0xFF,1);error: invalid conversion from `int' to `const char*'|