yesy you can, but I'd be very careful of how contents are written to the file.
Here is some code showing that it is possible to do what you want (I guess):
The output is:
Wrote 65 66 67 68 69
Wrote Hello
Read 65 66 67 68 69
Read Hello
And the file mixed.dat looks like:
ABCDEHello
The code is not optimized at all,
you should perform some checks, modularize it a little bit and catch some exceptions...
Let me know if you need more...
[ February 21, 2002: Message edited by: Valentin Crettaz ]