I'm trying to read and write to binary files. I don't see a method for  
writing or reading Rails or Arrays of anything but bytes.

Can someone please verify this?
Are there methods for dealing with this that I may not have seen yet?


I'm also having a problem with writing/reading values to/from binary  
files.
For instance, if I write 0, 2, 4, ..., 18 as shorts to a file and  
examine using Unix od -X I get:

tests$ od -x x10RailsFile.bin
0000000      0000    0200    0400    0600    0800    0a00    0c00     
0e00
0000020      1000    1200
0000024


Can you tell me the byte order X10 is using to produce the file? It  
looks like big-endian (MSB). However, I'm trying to read a file that  
is stored LSB.

Can someone verify this?
Any suggestions for reading binary files?

Jim


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to