Function file::readstring()

← Back to Class file



Module fileioClass file → readstring()

Description

Read multiple bytes from the opened file and convert them to string (binary mode)

file::readstring(position, total_bytes)


Parameters


Return Value


Usage Example

import fileio
 
f = file("data.bin", file_binary + file_read)
data = f.readstring(0x01, 8)   ' Read 8 bytes from the position 1
f.close()