Re: problem with logic in reading a binary file

2008-03-30 Thread John Machin
On Mar 30, 3:58 pm, hdante [EMAIL PROTECTED] wrote: On Mar 29, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string. I would like to extract the values for use in a calculation. Any help would be great. I'm too

Re: problem with logic in reading a binary file

2008-03-30 Thread hdante
On Mar 30, 4:31 am, John Machin [EMAIL PROTECTED] wrote: On Mar 30, 3:58 pm, hdante [EMAIL PROTECTED] wrote: On Mar 29, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string. I would like to extract the values

Re: problem with logic in reading a binary file

2008-03-30 Thread Diez B. Roggisch
hdante schrieb: On Mar 30, 4:31 am, John Machin [EMAIL PROTECTED] wrote: On Mar 30, 3:58 pm, hdante [EMAIL PROTECTED] wrote: On Mar 29, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string. I would like to extract the

Re: problem with logic in reading a binary file

2008-03-30 Thread hdante
On Mar 30, 9:23 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: hdante schrieb: On Mar 30, 4:31 am, John Machin [EMAIL PROTECTED] wrote: On Mar 30, 3:58 pm, hdante [EMAIL PROTECTED] wrote: On Mar 29, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am having trouble

Re: problem with logic in reading a binary file

2008-03-30 Thread Diez B. Roggisch
Whatever you say. Can't express what your approval means to me! Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with logic in reading a binary file

2008-03-30 Thread Jorgen Grahn
On Sun, 30 Mar 2008 04:48:59 -0700 (PDT), hdante [EMAIL PROTECTED] wrote: On Mar 30, 4:31 am, John Machin [EMAIL PROTECTED] wrote: On Mar 30, 3:58 pm, hdante [EMAIL PROTECTED] wrote: If you have some legacy binary file that you need to process, try creating a C program that freads the

problem with logic in reading a binary file

2008-03-29 Thread [EMAIL PROTECTED]
Hello, I am having trouble writing the code to read a binary string. I would like to extract the values for use in a calculation. Any help would be great. Here is my function that takes in a string. def parseSequence(data, start): group_num = data[start:start+2] element_num =

Re: problem with logic in reading a binary file

2008-03-29 Thread Gary Herron
[EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string. I would like to extract the values for use in a calculation. Any help would be great. Without having looked at your code an any detail, may I humbly suggest that you throw it all out and use

Re: problem with logic in reading a binary file

2008-03-29 Thread castironpi
On Mar 29, 2:11 pm, Gary Herron [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string.  I would like to extract the values for use in a calculation. Any help would be great. Without having looked at your code an any

Re: problem with logic in reading a binary file

2008-03-29 Thread hdante
On Mar 29, 3:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I am having trouble writing the code to read a binary string. I would like to extract the values for use in a calculation. Any help would be great. I'm too lazy to debug your binary string, but I suggest that you