3 ]@s6dZddlZddZddZddZejfd d ZdS) z This module aim in loading and writing files. Our files respect a specific format that is not standard. This is why i hope these function make the read of file easier. For more information about the data, read the README file please. Nc Csfg}t|dN}xF|D]>}|jddjd}|djd}|dd}|j||fqWWdQRX|S) zz Read the file and return an array with pairs where each pair is composed by the metas and the features. r  r,N)openreplacesplitappend)filepathdataflineZsplitedmetasfeaturesr s