Implementation of creating files for libsvm