file to c style array converter