- Jul 2, 2001
- 25,923
- 17
- 81
Weird, I know. It's very troubling to me that arrays are immutable (although I understand why it's banned
).
Basically, I have an arbitrary binary file, which I wish to read in, one byte at a time, manipulate the data, and write it out.
So, I need a means to extract a file length to determine what size to make the array, *and* for error checking (I need to know if file A is bigger than file B).
Any simple means to extract my file length?
Basically, I have an arbitrary binary file, which I wish to read in, one byte at a time, manipulate the data, and write it out.
So, I need a means to extract a file length to determine what size to make the array, *and* for error checking (I need to know if file A is bigger than file B).
Any simple means to extract my file length?