Click here to Skip to main content
15,919,121 members

Comments by TheBitSlinger (Top 7 by date)

TheBitSlinger 27-Apr-11 17:19pm View    
You were right! I'm guessing I could face the same issue with ReadInt32, ReadInt16, etc.?
TheBitSlinger 27-Apr-11 17:18pm View    
That was the issue, and ReadBytes worked! I'd been playing around with ReadBytes, but could not figure out how to decode the byte array. I'd tried Base64 decoding with no joy.
TheBitSlinger 25-Apr-11 23:42pm View    
It worked! Thanks to everyone who helped out!
TheBitSlinger 25-Apr-11 12:12pm View    
Okay, I follow what you're saying. I'm just talking through this so I fully understand... Say my input file has a length of 1,500, and I want to create array to hold bytes 45 through 1,500, which is 1,456 bytes. The boundaries of the array in both C# and VB.Net would be 0 to 1,455, but since VB.Net arrays are sized relative to n + 1, that has to be accounted for. Blah, I knew I was missing something about C# vs VB.Net. Thanks!
TheBitSlinger 25-Apr-11 11:44am View    
So C# sharp IS different from VB. Is the difference that offsets in C# start with 1, while offsets in VB start with 0? I'd say that has to be the problem, because as I noted in my comment to MRB's excellent suggestion, my merged file is one byte longer than the sample I created with the original project.