Read SPI from file