numpy.fromfile()
numpy.fromfile
-
numpy.fromfile(file, dtype=float, count=-1, sep='')
-
Construct an array from data in a text or binary file.
A highly efficient way of reading binary data with a known data-type, as well as parsing simply formatted text files. Data written using the
tofile
method can be read using this function.Parameters: file : file or str
Open file object or filename.
dtype : data-type
Data type of the returned array. For binary files, it is used to determine the size and byte-order of the items in the file.
count : int
Number of items to read.
-1
mean