writing feature vector to a file^C