support for binary files read/write
file constructor
split read in read_txt, read_bin