file to c style array