I have tried the following:

import array

data = array.array('f')

f = open('filename','rb')

data.fromfile(f, 6)

print data

The result is:

array('f', [1002.02490234375, 10.442339897155762, -251.11215209960937, -1295.44384765625, -645.1199951171875, -18.742809295654297])

What I was hoping to get was an array of 3 complex points with the

following real and img parts:

(1002.02, 10.4423) ( -251.112, -1295.44) (-645.120, -18.7428)

Eventually what I would like to do is to apply FFT on the complex array.

Thanks for your help.

Then you'll definitely want to get

SciPy. SciPy arrays can be created to suit your needs and the FFT is implemented in C, but called like a built-in function.