KF> And also.. How do i open a file in BINARY mode to write to?? (if the
KF> file
KF> is in TRUE binary when you edit it with say, XTree Gold, it should say
KF> something like : CANNOT EDIT NON-TEXT FILE .... I have tried:
KF> writepoint = fopen("record.dat","wb");
That is correct.
KF> but it just writes the file in text mode...
No it doesn't.
KF> Any help would be appreciated!
After opening the file as above, try going fputc(0x01, writepoint);
and then close the file, and see what Xtree thinks of it then.
You see, you actually have to write some binary data to a binary
file before it starts looking like a binary file! If you only
write printable text to a binary file, it will look just like a
text file! BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|