B
Bruce
Hi, All,
I am writing a module needs to flush data into disk file, and this file
would be read on different platforms, including *nix, windows. I use
RandomAccessFile (java 1.4.2) to do the input and output operation. The
data I write are int, long, and bytes.
Now I simply write and read these data using writeLong, writeInt,
write(byte[]) and readLong, readInt, read(byte[]) funtions of
RandomAccessFile. I am not sure if there is encoding problem when the
file written on Windows be read on Linux/unix/solaris platform.
I look for functions of changing default RandomAccessFile's charset
encoding, but I didn't find it.
Regards,
-Bruce
I am writing a module needs to flush data into disk file, and this file
would be read on different platforms, including *nix, windows. I use
RandomAccessFile (java 1.4.2) to do the input and output operation. The
data I write are int, long, and bytes.
Now I simply write and read these data using writeLong, writeInt,
write(byte[]) and readLong, readInt, read(byte[]) funtions of
RandomAccessFile. I am not sure if there is encoding problem when the
file written on Windows be read on Linux/unix/solaris platform.
I look for functions of changing default RandomAccessFile's charset
encoding, but I didn't find it.
Regards,
-Bruce