def load(self, f, skip):
array = self.get()<EOL>counter = <NUM_LIT:0><EOL>counter_limit = array.size<EOL>convert = array.dtype.type<EOL>while counter < counter_limit:<EOL><INDENT>line = f.readline()<EOL>words = line.split()<EOL>for word in words:<EOL><INDENT>if counter >= counter_limit:<EOL><INDENT>raise FileFormatError("<STR_LIT>")<EOL><DEDENT>if not skip:<EOL><INDENT>array.flat[counter] = convert(word)<EOL><DEDENT>counter += <NUM_LIT:1><EOL><DEDENT><DEDENT>
Load the array data from a file-like object