From: Zach Dennis Date: 2005-04-26T09:18:07+09:00 Subject: Re: long conversion ... Ara.T.Howard@noaa.gov wrote: > so, not matter what order you put them in, you aren't going to get the > bits for 50 out of 'em i'm afraid ;-( in fact, since you know 50 fits into one byte > four bytes of a 'long' 50 will have to have three zero filled bytes for most > archs. I was afraid of that...I was hoping there was something I was missing... > > how is the data being written/read? The data is being written from another application to a binary file. I have isolated and confirmed that 4 bytes correspond to a certain number input (a maximum folder size is what the number means). I am reading the file and parsing it's information. I have every field working except for this max folder size. It appears that my numbers for 50 were wrong in my original post, although with the logic you applied Ara my wishful thinking was still way off base. Here is a sample of the first 50 rows of data. Each row signifies the # of Megabytes defined for max storage. Each column signifies a byte in the position they are in the file. The first column and the first row are labels in this email. This is another numbers/patterns/algorithms things similar to what I posted a few weeks ago, but this time it appears slighly more difficult. If anyone has the time, the patience and the know-how to make sense of this, any help would greatly be appreciated. If not then I will keep thinking about ways to attack this problem. Thanks in advance, Zach 1 2 3 4 0 0 0 0 0 1 0 15 66 64 2 0 30 132 128 3 0 45 198 192 4 0 61 9 0 5 0 76 75 64 6 0 91 141 128 7 0 106 207 192 8 0 122 18 0 9 0 137 84 64 10 0 152 150 128 11 0 167 216 192 12 0 183 27 0 13 0 198 93 64 14 0 213 159 128 15 0 228 225 192 16 0 244 36 0 17 1 3 102 64 18 1 18 168 128 19 1 33 234 192 20 1 49 45 0 21 1 64 111 64 22 1 79 177 128 23 1 94 243 192 24 1 109 54 0 25 1 125 120 64 26 1 140 186 128 27 1 155 252 192 28 1 171 63 0 29 1 186 129 64 30 1 202 195 128 31 1 217 5 192 32 1 232 72 0 33 1 247 138 64 34 2 6 204 128 35 2 22 14 192 36 2 37 81 0 37 2 52 147 64 38 2 67 213 128 39 2 83 23 192 40 2 98 90 0 41 2 113 156 64 42 2 128 222 128 43 2 144 32 192 44 2 159 99 0 45 2 174 165 64 46 2 189 231 128 47 2 205 41 192 48 2 220 108 0 49 2 235 174 64 50 2 250 240 128